# HG changeset patch # User Alex Schroeder # Date 1136764027 0 # Node ID b62da271055d6bd97ef631ca81dbc3707b3fa4a0 # Parent 2212a4afa3ce4fec2a3de8a864a8eebcfd508732 (rmail-reply-regexp): Also ignore mailing list identifiers sometimes added in square brackets at the beginning of subject lines. diff -r 2212a4afa3ce -r b62da271055d lisp/mail/rmail.el --- a/lisp/mail/rmail.el Sun Jan 08 21:29:46 2006 +0000 +++ b/lisp/mail/rmail.el Sun Jan 08 23:47:07 2006 +0000 @@ -447,8 +447,10 @@ "String to prepend to Subject line when replying to a message.") ;; Some mailers use "Re(2):" or "Re^2:" or "Re: Re:" or "Re[2]:". -;; This pattern should catch all the common variants. -(defvar rmail-reply-regexp "\\`\\(Re\\(([0-9]+)\\|\\[[0-9]+\\]\\|\\^[0-9]+\\)?: *\\)*" +;; This pattern should catch all the common variants. The pattern +;; also ignores mailing list identifiers sometimes added in square +;; brackets at the beginning of subject lines. +(defvar rmail-reply-regexp "\\`\\(\\[.+?\\] \\)?\\(Re\\(([0-9]+)\\|\\[[0-9]+\\]\\|\\^[0-9]+\\)?: *\\)*" "Regexp to delete from Subject line before inserting `rmail-reply-prefix'.") (defcustom rmail-display-summary nil