From: Alex Schroeder Date: Tue, 17 Jan 2006 10:04:56 +0000 (+0000) Subject: (rmail-auto-file): Rewrote test for "filed" using X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cd6334e4c35c2264a851dcf424915ccfa432a09e;p=emacs.git (rmail-auto-file): Rewrote test for "filed" using rmail-desc-get-keywords. --- diff --git a/lisp/mail/ChangeLog b/lisp/mail/ChangeLog index 201fce711f4..59bc26301b3 100644 --- a/lisp/mail/ChangeLog +++ b/lisp/mail/ChangeLog @@ -1,5 +1,16 @@ 2006-01-17 Alex Schroeder + * rmailsum.el (rmail-summary-by-labels): No longer concatenate + regexp with commas because of recent change to + rmail-message-labels-p. + (rmail-summary-rmail-update): Replace rmail-message-labels-p test + with simple rmail-desc-get-keywords. + + * rmail.el (rmail-message-labels-p): Rewrote using + rmail-desc-get-keywords. + (rmail-auto-file): Rewrote test for "filed" using + rmail-desc-get-keywords. + * rmailsum.el (rmail-summary-font-lock-keywords): Fix regular expression for unread messages. (rmail-summary-mode): Added documentation for the filtering diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 227abc0d07d..e03e68bb37b 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -2316,7 +2316,7 @@ iso-8859, koi8-r, etc." (defun rmail-auto-file () "Automatically move a message into a sub-folder based on criteria. Called when a new message is displayed." - (if (or (rmail-message-labels-p rmail-current-message "filed") + (if (or (member "filed" (rmail-desc-get-keywords rmail-current-message)) (not (string= (buffer-file-name) (expand-file-name rmail-file-name)))) ;; Do nothing if it's already been filed.