+2004-04-14 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * nnmail.el (nnmail-cache-insert): Always check whether
+ nnmail-cache-ignore-groups matches a group name.
+
2004-04-13 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el (spam-fetch-field-fast, spam-generate-fake-headers)
;;; nnmail.el --- mail support functions for the Gnus mail backends
-;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
;; Free Software Foundation, Inc.
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
(save-excursion
(set-buffer nnmail-cache-buffer)
(goto-char (point-max))
- (if (and grp (not (string= "" grp))
- (gnus-methods-equal-p gnus-command-method
- (nnmail-cache-primary-mail-backend)))
+ (if (and grp (not (string= "" grp)))
(let ((regexp (if (consp nnmail-cache-ignore-groups)
(mapconcat 'identity nnmail-cache-ignore-groups
"\\|")
nnmail-cache-ignore-groups)))
(unless (and regexp (string-match regexp grp))
- (insert id "\t" grp "\n")))
+ (if (gnus-methods-equal-p gnus-command-method
+ (nnmail-cache-primary-mail-backend))
+ (insert id "\t" grp "\n")
+ (insert id "\n"))))
(insert id "\n"))))))
(defun nnmail-cache-primary-mail-backend ()