Re: Removing national 'Re:' fields from subject
Hello Per,
On Tuesday, September 6, 2005 at 12:09:30 PM +0200, Per Carlson wrote:
> reply_regexp="^(re([[0-9]+])*|aw|ad|sv):[ ?]*"
I use in muttrc:
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| # Re[2]: The Bat!
| # Re(2): Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
| # Re^2:
| # AW: Microsoft Outlook 8.5 Germany
| # SV: Internet Mail Service (5.5.2448.0) Norway
| # Odp: Microsoft Outlook Express 5 Poland
| # Re : eGroups-EW/0.82
| # Re : eGroups-EW/0.82 \240
| # Antwort: Lotus Notes Release 5.0.5 Germany
| # Antw: Novell GroupWise 5.5.2 Germany
| # Réf. : IncrediMail 2001
| # Rép. : Groupwise 5.5.3.1
| # TR: Microsoft Outlook 8.5
| # Trans. : AOL 7.0 for Windows FR
| #
| # Autoreply: some ch MTA on delivery problems
|
| set reply_regexp="^((\
| [Rr][Eeé][ ]?:|\
| [Rr][Ee] |\
| Re\\[[0-9]+\\]:|\
| Re\\([0-9]+\\):|\
| Re\\^[0-9]+:|\
| AW:|\
| SV:|\
| Odp:|\
| Obj\\.? ?:|\
| Re :|\
| Antw(ort)?:|\
| R[eé]f\\. :|\
| Rép\\. :|\
| R[eé]p\\.?:|\
| F[Ww][Dd]? ?:|\
| T[Rr] ?:|\
| Trans\\. :\
| )[ \t ]*)+" # The ending range contains 3 chars:
| # space, tab, and no-break space \240.
|
| # Autoreply:|\ # removed non aplicable
| # Betr(\\.?|eff):?|\ # removed never seen
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Beware there are special characters here and there: Some may not
survive a copy/paste operation.
> subject reads e.g. "Ad: <subject>"
What means that "Ad:"? Which software of which country produced it?
> the subject will than be "Ad: Re: <subject>", which will be changed to
> "Re: Re: <subject>" by mutt.
That's because the regexp you used matches only *one* prefix. A good
$reply_regexp must match repeatedly as many prefixes as there are (the
final "+" in mine).
Bye! Alain.
--
When you want to reply to a mailing list, please avoid doing so with
Hushmail. This lacks necessary references and breaks threads.