procmail
[Top] [All Lists]

Re: Newbie ?? - Changing the Subject: line

1998-04-07 23:03:58
|Tue 98-04-07 "Kevin H. Ingle" <kingle(_at_)cisco(_dot_)com> list.procmail
| ....how would I change the Subject: from the
| "current title" to "SPAM - current title"?

    #   record original subject
    #   This is faster than doing SUBJECT = `$FORMAIL -xSubject:`

    :0                  
    * ^Subject:\/.*
    {
        SUBJECT = $MATCH
    }

    SPAM    # kill variable

    ..recipes that trigger spam...
    ..they should set SPAM to some value

    #   If variable SPAM has something in it, change subject

    :0
    * SPAM ?? [a-z]
    | $FORMAIL  -I "Subject: SPAM - $SUBJECT"

Right?
jari

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