[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [vps-mail] Rewriting Subject Line thru procmailrc file



Perfect! Thanks Scott.

js 

> -----Original Message-----
> From: owner-vps-mail@xxxxxxxxxxxx 
> [mailto:owner-vps-mail@xxxxxxxxxxxx] On Behalf Of Scott Wiersdorf
> Sent: Tuesday, April 12, 2005 12:53 PM
> To: vps-mail@xxxxxxxxxxxx
> Subject: Re: [vps-mail] Rewriting Subject Line thru procmailrc file
> 
> 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).
> 

======================================================================
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
Match: Format: Sort by:
Search: