procmail
[Top] [All Lists]

Re: alter subject line?

1999-08-20 01:35:53
Replying to message of Tue, 17 Aug 1999 18:43:30 -0400 (EDT)
from aggarwal <aggarwal(_at_)dti(_dot_)net>
regarding ``alter subject line?''


> if i get a message from joe(_at_)shmoe(_dot_)com with subject "hey there"
> i would like to change the subject to "[shmoe] hey there"

I think

:0
* ^From:(_dot_)*joe(_at_)shmoe\(_dot_)com
{
SUBJECT=`formail -zxSubject:`

:0fhw
| formail -I"Subject: [shmoe] $SUBJECT"
}

will do what you want

TjL, who hasn't contributed anything for awhile and finally saw a question simple enough he could answer ;-)




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