[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vps-mail] Rewriting Subject Line thru procmailrc file
- Subject: Re: [vps-mail] Rewriting Subject Line thru procmailrc file
- From: Scott Wiersdorf <scottw@xxxxxxxxxxxx>
- Date: Tue, 12 Apr 2005 10:52:43 -0600
On Tue, Apr 12, 2005 at 12:40:15PM -0400, Jim Smith wrote:
> I've searched and Googled but still confused on this: How do I append
> something to the Subject line of emails using procmailrc? I have a client
> wanting ""BB-SPAM** in the header for each email that matches spam criteria
> in the procmailrc file. I know how to do this in the spamassassin's
> user_prefs file but can't figure out how it works in procmail. Is there an
> easily understood tutorial on this? (Please don't make me wade through the
> man formail again.) Or can someone give me the formula with some Cliff Notes
> to do this?
Something like this, p'raps:
## extract the existing subject
SUBJECT=`formail -zxSubject:`
## append (BB-SPAM**) to the existing subject
:0 fh
| formail -I"Subject: $SUBJECT (BB-SPAM**)"
Scott
--
Scott Wiersdorf
scottw@xxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).
Main Index |
Thread Index