procmail
[Top] [All Lists]

Re: Alter subject line and then resend - eeek!

2006-04-14 11:30:34
        Thank you for your reponse!
        And while I'm conscious of the SpamAssassin setting you speak of, it 
seems to be unique to a *system-wide* installation. When you set up SA for an 
individual account this option does not seem to be available.
        
********************************************************************
Brett Charbeneau
Network Administrator
Williamsburg Regional Library
7770 Croaker Road
Williamsburg, VA 23188-7064
(757)259-4044          www.wrl.org
(757)259-4079 (fax)    brett(_at_)wrl(_dot_)org
********************************************************************

On Fri, 14 Apr 2006, Shane Williams wrote:

SW> This isn't what you asked, and maybe there's a reason you can't do it
SW> this way, but SpamAssassin has an option (which can be set per-user)
SW> to rewrite the subject line as desired.  Look for the rewrite_header
SW> setting in 3.0 and later.
SW> 
SW> On Fri, 14 Apr 2006, Brett Charbeneau wrote:
SW> 
SW> > Gentlefolks,
SW> > 
SW> >   I've scoured the list archives and Google to try and find out what
SW> > I'm
SW> > doing wrong, but I'm left scratching my head. Doh!
SW> >   I'd be very grateful for any help anyone can find the time to offer.
SW> >   BACKGROUND: I've got a handful of Outlook users who have individual
SW> > SpamAssassin installations on my mail server. I'd like to use a procmail
SW> > script
SW> > to run incoming mail through SA and, if marked as spam, alter the Subject
SW> > line
SW> > so that Outlook filters will stick these messages into a specific folder.
SW> >   Can anyone please tell me how I can get procmail to NOT skip my
SW> > formail
SW> > statment - I'd like it to alter that Subject line and then just plop the
SW> > message
SW> > into the user's  /var/spool/mail file (their inbox).
SW> >   Here's the recipe I'm playing with:
SW> > 
SW> > :0fw: spamassassin.lock
SW> > | /home/mjohnson/sausr/bin/spamassassin
SW> > :0e
SW> > {
SW> >   EXITCODE=$?
SW> > }
SW> > :0
SW> > * ^X-Spam-Status: Yes
SW> > | formail -I "Subject: [Spam?] $SUBJECT"
SW> > 
SW> > 
SW> >   Here's what the log says on a successful spam detection:
SW> > 
SW> > procmail: Assigning "INCLUDERC=/home/mjohnson/Procmail/rc.spam"
SW> > procmail: Locking "spamassassin.lock"
SW> > procmail: Executing "/home/mjohnson/sausr/bin/spamassassin"
SW> > procmail: [15109] Fri Apr 14 10:30:58 2006
SW> > procmail: Unlocking "spamassassin.lock"
SW> > procmail: Match on "^X-Spam-Status: Yes"
SW> > procmail: Skipped "| formail -I "Subject: [Spam?] $SUBJECT""
SW> > procmail: Locking "/var/mail/mjohnson.lock"
SW> > procmail: Assigning "LASTFOLDER=/var/mail/mjohnson"
SW> > procmail: Opening "/var/mail/mjohnson"
SW> > procmail: Acquiring kernel-lock
SW> > procmail: Unlocking "/var/mail/mjohnson.lock"
SW> > procmail: Notified comsat: "mjohnson(_at_)2425970:/var/mail/mjohnson"
SW> > > From genuine_really(_at_)yahoo(_dot_)com  Fri Apr 14 10:30:53 2006
SW> >  Subject: Test
SW> >   Folder: /var/mail/mjohnson
SW> > 4428
SW> > 
SW> > 
SW> > 
SW> 
SW> 

-- 

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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