|Mon 98-03-30 Timothy J Luoma
| I am using this to get rid of a couple different new & annoying formats
| which came up,
| # Filter "Re:"/"Re^3:" and the like out of Subject:
| * ^Subject: *((Re: ?)*Re[[^]|Re: *Re:)
| | perl -pe 's/^subject:\s*(re[^\d]*:\s*)+/Subject: Re: /i;'
Timothy, there already exist Procmail module to simplyfy this.
And it uses AWK, which is more lighter than Perl.
Pm-jasubject.rc -- Subject field cleaner and canonilizer (Re:)
There are many different Email programs out there that add their
own "reply" characters to the subject field. The most sad programs
come usually from PC platform. Eg. Microsoft has gained a lot of
bad reputation due to it's own standards.
o MS Explorer uses "Vs:"
o MS product Outlook (??) uses "Sv:"
o MS mail uses "FW:"
o Intelligent MUAs try to keep count of replies with
"Re2:" or "Re"
o Japanese MUA Denshin 8 Go V321.1b7 uses Re^2:
o Some mua uses "Re> "
o Lotus notes (in French version) uses "Ref: "
o Some MS product sends "UQ: "
They all must mean well, but there already is a de facto standard
where message should contain only single "Re:" if message has been
replied to (no matter how many times). This makes it possible to
do efficient message threading by only using Subject and date fields.
And grepping same subjects is lot easier than from this horrible mess:
Subject: Re^2: Re: FW: Re: Re: Sv: Re: test message
This recipe standardizes any subject (like above) that has been
replied to, to de facto format:
Subject: Re: test message