aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-04-17 15:55:50 +0000
committerRichard M. Stallman2005-04-17 15:55:50 +0000
commit868e7865bfcf46d7f4be84f25c87e977ac79aacd (patch)
treee2788ef514973a6173361417275e35f438ca5010
parentb795df2b32f8bb05e748b8694f48606b0ffe3f1c (diff)
downloademacs-868e7865bfcf46d7f4be84f25c87e977ac79aacd.tar.gz
emacs-868e7865bfcf46d7f4be84f25c87e977ac79aacd.zip
(rmail-ignored-headers): Ignore more headers
(rmail-font-lock-keywords): Don't fontify the text of a citation.
-rw-r--r--lisp/mail/rmail.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index de88b37d91e..e7c634f4202 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -246,7 +246,7 @@ It is useful to set this variable in the site customization file.")
246 246
247;;;###autoload 247;;;###autoload
248(defcustom rmail-ignored-headers 248(defcustom rmail-ignored-headers
249 (concat "^via:\\|^mail-from:\\|^origin:\\|^references:" 249 (concat "^via:\\|^mail-from:\\|^origin:\\|^references:\\|^sender:"
250 "\\|^status:\\|^received:\\|^x400-originator:\\|^x400-recipients:" 250 "\\|^status:\\|^received:\\|^x400-originator:\\|^x400-recipients:"
251 "\\|^x400-received:\\|^x400-mts-identifier:\\|^x400-content-type:" 251 "\\|^x400-received:\\|^x400-mts-identifier:\\|^x400-content-type:"
252 "\\|^\\(resent-\\|\\)message-id:\\|^summary-line:\\|^resent-date:" 252 "\\|^\\(resent-\\|\\)message-id:\\|^summary-line:\\|^resent-date:"
@@ -254,14 +254,17 @@ It is useful to set this variable in the site customization file.")
254 "\\|^x-mailer:\\|^delivered-to:\\|^lines:\\|^mime-version:" 254 "\\|^x-mailer:\\|^delivered-to:\\|^lines:\\|^mime-version:"
255 "\\|^content-transfer-encoding:\\|^x-coding-system:" 255 "\\|^content-transfer-encoding:\\|^x-coding-system:"
256 "\\|^return-path:\\|^errors-to:\\|^return-receipt-to:" 256 "\\|^return-path:\\|^errors-to:\\|^return-receipt-to:"
257 "\\|^x-sign:\\|^x-beenthere:\\|^x-mailman-version:" 257 "\\|^x-sign:\\|^x-beenthere:\\|^x-mailman-version:\\|^x-mailman-copy:"
258 "\\|^precedence:\\|^list-help:\\|^list-post:\\|^list-subscribe:" 258 "\\|^precedence:\\|^list-help:\\|^list-post:\\|^list-subscribe:"
259 "\\|^list-id:\\|^list-unsubscribe:\\|^list-archive:" 259 "\\|^list-id:\\|^list-unsubscribe:\\|^list-archive:"
260 "\\|^content-type:\\|^content-length:" 260 "\\|^content-type:\\|^content-length:"
261 "\\|^x-attribution:\\|^x-disclaimer:\\|^x-trace:" 261 "\\|^x-attribution:\\|^x-disclaimer:\\|^x-trace:"
262 "\\|^x-complaints-to:\\|^nntp-posting-date:\\|^user-agent" 262 "\\|^x-complaints-to:\\|^nntp-posting-date:\\|^user-agent"
263 "\\|^importance:\\|^envelope-to:\\|^delivery-date" 263 "\\|^importance:\\|^envelope-to:\\|^delivery-date"
264 "\\|^x.*-priority:\\|^x-mimeole:") 264 "\\|^x.*-priority:\\|^x-mimeole:\\|^x-archive:"
265 "\\|^resent-face:\\|^resent-x.*:\\|^resent-organization\\|^resent-openpgp"
266 "\\|^openpgp:\\|^x-request-pgp:\\|^x-original.*:"
267 "\\|^x-virus-scanned:\\|^x-spam-[^s].*:")
265 "*Regexp to match header fields that Rmail should normally hide. 268 "*Regexp to match header fields that Rmail should normally hide.
266This variable is used for reformatting the message header, 269This variable is used for reformatting the message header,
267which normally happens once for each message, 270which normally happens once for each message,
@@ -653,6 +656,7 @@ The first parenthesized expression should match the MIME-charset name.")
653 . font-lock-function-name-face) 656 . font-lock-function-name-face)
654 '("^Reply-To:.*$" . font-lock-function-name-face) 657 '("^Reply-To:.*$" . font-lock-function-name-face)
655 '("^Subject:" . font-lock-comment-face) 658 '("^Subject:" . font-lock-comment-face)
659 '("^X-Spam-Status:" . font-lock-keyword-face)
656 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):" 660 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):"
657 . font-lock-keyword-face) 661 . font-lock-keyword-face)
658 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side. 662 ;; Use MATCH-ANCHORED to effectively anchor the regexp left side.
@@ -662,8 +666,7 @@ The first parenthesized expression should match the MIME-charset name.")
662 "\\(" cite-chars "[ \t]*\\)\\)+" 666 "\\(" cite-chars "[ \t]*\\)\\)+"
663 "\\(.*\\)") 667 "\\(.*\\)")
664 (beginning-of-line) (end-of-line) 668 (beginning-of-line) (end-of-line)
665 (2 font-lock-constant-face nil t) 669 (3 font-lock-comment-face nil t)))
666 (4 font-lock-comment-face nil t)))
667 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$" 670 '("^\\(X-[a-z0-9-]+\\|In-reply-to\\|Date\\):.*\\(\n[ \t]+.*\\)*$"
668 . font-lock-string-face)))) 671 . font-lock-string-face))))
669 "Additional expressions to highlight in Rmail mode.") 672 "Additional expressions to highlight in Rmail mode.")