Mercurial > emacs
comparison lisp/mail/rmail.el @ 61598:b543e1be9df2
(rmail-ignored-headers): Ignore more headers
(rmail-font-lock-keywords): Don't fontify the text of a citation.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 17 Apr 2005 15:55:50 +0000 |
parents | cf375e6ff77b |
children | eb4738891294 e1fbb019c538 |
comparison
equal
deleted
inserted
replaced
61597:bebf790f4c99 | 61598:b543e1be9df2 |
---|---|
244 value is the user's email address and name.) | 244 value is the user's email address and name.) |
245 It is useful to set this variable in the site customization file.") | 245 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:" |
253 "\\|^nntp-posting-host:\\|^path:\\|^x-char.*:\\|^x-face:\\|^face:" | 253 "\\|^nntp-posting-host:\\|^path:\\|^x-char.*:\\|^x-face:\\|^face:" |
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. |
266 This variable is used for reformatting the message header, | 269 This variable is used for reformatting the message header, |
267 which normally happens once for each message, | 270 which normally happens once for each message, |
268 when you view the message for the first time in Rmail. | 271 when you view the message for the first time in Rmail. |
269 To make a change in this variable take effect | 272 To make a change in this variable take effect |
651 (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) | 654 (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) |
652 (list '("^\\(From\\|Sender\\|Resent-From\\):" | 655 (list '("^\\(From\\|Sender\\|Resent-From\\):" |
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. |
659 `(,cite-chars | 663 `(,cite-chars |
660 (,(concat "\\=[ \t]*" | 664 (,(concat "\\=[ \t]*" |
661 "\\(\\([" cite-prefix "]+[" cite-suffix "]*\\)?" | 665 "\\(\\([" cite-prefix "]+[" cite-suffix "]*\\)?" |
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.") |
670 | 673 |
671 ;; Perform BODY in the summary buffer | 674 ;; Perform BODY in the summary buffer |