unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Henrik Enberg <henrik.enberg@telia.com>
Cc: alex@gnu.org, emacs-devel@gnu.org
Subject: Re: Removing list identifiers in rmail (was: Changes to emacs/lisp/mail/rmail.el)
Date: Tue, 10 Jan 2006 19:41:48 +0100 (CET)	[thread overview]
Message-ID: <200601101841.k0AIfm9V018454@rocksteady.printf.se> (raw)
In-Reply-To: <v9k6d8uqz5.fsf@marauder.physik.uni-ulm.de> (message from Reiner Steib on Tue, 10 Jan 2006 14:55:58 +0100)

> > --- 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.

Perhaps it should only remove text matched by members in some user
supplied list.  I vaguely remember Gnus having such a feature.

      parent reply	other threads:[~2006-01-10 18:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EvkFf-0008OA-AM@savannah.gnu.org>
2006-01-10 13:55 ` Removing list identifiers in rmail (was: Changes to emacs/lisp/mail/rmail.el) Reiner Steib
2006-01-10 17:37   ` Alex Schroeder
2006-01-10 19:56     ` Removing list identifiers in rmail Stefan Monnier
2006-01-10 20:57       ` Alex Schroeder
2006-01-10 18:41   ` Henrik Enberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200601101841.k0AIfm9V018454@rocksteady.printf.se \
    --to=henrik.enberg@telia.com \
    --cc=alex@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).