+2008-02-26 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * gnus-registry.el (gnus-registry-register-message-ids): Use `id'
+ instead of making an extra function call. Don't add the current group
+ to articles only when they have the group.
+ Reported by David <de_bb@arcor.de>.
+
2008-02-20 Katsumi Yamaoka <yamaoka@jpl.org>
* lpath.el: Fbind pgg-display-output-buffer for systems in which EasyPG
(defun gnus-registry-trim (alist)
"Trim alist to size, using gnus-registry-max-entries.
-Also, drop all gnus-registry-ignored-groups matches.
Any entries with extra data (marks, currently) are left alone."
(if (null gnus-registry-max-entries)
alist ; just return the alist
gnus-registry-hashtb)
(dolist (item alist)
- (let ((key (nth 0 item)))
+ (let ((key (nth 0 item)))
(if (gethash key precious)
(push item precious-list)
(push item junk-list))))
(unless (gnus-parameter-registry-ignore gnus-newsgroup-name)
(dolist (article gnus-newsgroup-articles)
(let ((id (gnus-registry-fetch-message-id-fast article)))
- (unless (gnus-registry-fetch-group id)
+ (unless (member gnus-newsgroup-name (gnus-registry-fetch-group id))
(gnus-message 9 "Registry: Registering article %d with group %s"
article gnus-newsgroup-name)
- (gnus-registry-add-group
- (gnus-registry-fetch-message-id-fast article)
+ (gnus-registry-add-group
+ id
gnus-newsgroup-name
(gnus-registry-fetch-simplified-message-subject-fast article)
(gnus-registry-fetch-sender-fast article)))))))