procmail
[Top] [All Lists]

Re: Recipie help

2010-09-30 12:08:03
On 2010-09-30 18:28, Alex Rodriguez wrote:

* ^X-Spam-Flag:.*YES*

0, 1 or more times an S?


{
         # First, save original subject
         ORIGSUBJECT=`formail -c -xSubject:`

         :0fwh
         # Modify the subject line
         * ^Subject: \/.*
         | formail -I"Subject: [MODIFIED] $MATCH"

         # Forward
         :0c
         ! alex(_at_)spectrecom(_dot_)com

         # Put back the original subject and submit to ${DEFAULT}
         :0fwh
         | formail -I"Subject:$ORIGSUBJECT"

         :0:
         | $DOVECOT_DELIVERY
}

No need to repair the subject, if you would keep the damage in the copy only.

--
Ruud
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

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