procmail
[Top] [All Lists]

Modifying subject

2000-11-05 11:48:10
Hello,

I think I've seen this on the list recently, but unfortunately
didn't save the traffic....

I want to strip off and discard a leading string from the subject
line of certain incoming email messages.  Specifically, something
like

    Subject: [Zonelink] Miraflores locks camera

should be delivered as

    Subject: Miraflores locks camera

Here's what I've come up with:

    :0 Hf
    * ^Subject: \[Zonelink\](.*)
    | formail -b -f -I "Subject: $1"

What I get is blank subject lines, so obviously I can't pass the
second part of the match forward as a variable the way I think I can. 

Any help?  Thanks!

-- 
Mark Shaw <mshaw(_at_)ti(_dot_)com>
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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