procmail
[Top] [All Lists]

Re: subject cleaning

1999-05-18 10:42:52
    Every single message posted to public lists should have a followup
by the same author, right? :-)

On 18 May 1999, Liviu Daia <Liviu(_dot_)Daia(_at_)imar(_dot_)ro> wrote:
[...]
:0
* ^Subject:[  ]+\/.*\[Fwd:.*
{
  subj = `echo $MATCH | sed \
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      -e 's/^\(\(\[Fwd\|Re\):[        ]*\)*/Re: /' \
      -e 's/\(\][     ]*\|[   ]*(fwd)\)*$/ (fwd)/'`

  :0 fwh
  | formail -I "Subject: $subj"
}
[...]

    Better make that

        subj = `echo "$MATCH" | sed \

--- just in case people might feel tempted to send you messages with a
subject along the lines of

        Re: [Fwd: ; rm -rf *]

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   Liviu(_dot_)Daia(_at_)imar(_dot_)ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc

<Prev in Thread] Current Thread [Next in Thread>