emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Removing list identifiers in rmail (was: Changes to emacs/lisp/mail/rmai


From: Reiner Steib
Subject: Removing list identifiers in rmail (was: Changes to emacs/lisp/mail/rmail.el)
Date: Tue, 10 Jan 2006 14:55:58 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Alex Schroeder on emacs-diffs:

> --- emacs/lisp/mail/rmail.el:1.417    Sun Jan  8 15:18:55 2006
> +++ emacs/lisp/mail/rmail.el  Sun Jan  8 23:47:07 2006
> @@ -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'.")

If this also removes tags in square brackets (like in "[PCL-CVS] foo",
"[patch] bar", ...), it is not a good idea, IMHO.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]