aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/mail/rmail.el6
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3157aeef6e6..0e664149b94 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-02-10 Bastien Guerry <bzg@altern.org>
2
3 * mail/rmail.el (rmail-nonignored-headers): Allow to be nil.
4 (rmail-clear-headers): Don't check `rmail-nonignored-headers' when
5 it is nil.
6
12008-02-10 Daiki Ueno <ueno@unixuser.org> 72008-02-10 Daiki Ueno <ueno@unixuser.org>
2 8
3 * epg-config.el: Expand the contents of epg-package-info.el. 9 * epg-config.el: Expand the contents of epg-package-info.el.
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 7ea89ab84bf..ed434ad75cb 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -299,6 +299,7 @@ go to that message and type \\[rmail-toggle-header] twice."
299 "*Regexp to match X header fields that Rmail should show. 299 "*Regexp to match X header fields that Rmail should show.
300This regexp overrides `rmail-ignored-headers'; if both this regexp 300This regexp overrides `rmail-ignored-headers'; if both this regexp
301and that one match a certain header field, Rmail shows the field. 301and that one match a certain header field, Rmail shows the field.
302If this is nil, ignore all header fields in `rmail-ignored-headers'.
302 303
303This variable is used for reformatting the message header, 304This variable is used for reformatting the message header,
304which normally happens once for each message, 305which normally happens once for each message,
@@ -306,7 +307,7 @@ when you view the message for the first time in Rmail.
306To make a change in this variable take effect 307To make a change in this variable take effect
307for a message that you have already viewed, 308for a message that you have already viewed,
308go to that message and type \\[rmail-toggle-header] twice." 309go to that message and type \\[rmail-toggle-header] twice."
309 :type 'regexp 310 :type '(choice (const nil) (regexp))
310 :group 'rmail-headers) 311 :group 'rmail-headers)
311 312
312;;;###autoload 313;;;###autoload
@@ -2329,7 +2330,8 @@ unless they also match `rmail-nonignored-headers'."
2329 (while (and ignored-headers 2330 (while (and ignored-headers
2330 (re-search-forward ignored-headers nil t)) 2331 (re-search-forward ignored-headers nil t))
2331 (beginning-of-line) 2332 (beginning-of-line)
2332 (if (looking-at rmail-nonignored-headers) 2333 (if (and rmail-nonignored-headers
2334 (looking-at rmail-nonignored-headers))
2333 (forward-line 1) 2335 (forward-line 1)
2334 (delete-region (point) 2336 (delete-region (point)
2335 (save-excursion 2337 (save-excursion