Greetings,
Sorry for the off topic post, but I am not a member of a procmail list and
I had hoped someone from this list would be kind enough to help me with a
procmail question that relates to SpamAssassin.
What I want to do is set up a user's .procmailrc to move messages that are
obviously spam (10 or more hits) to a folder username.spam, if the
messsage is between 5-10 hits I want to change the subject to "Warning!
Message is probably SPAM". I thought I had a working procmailrc, but the
subject line is never changed. Here is my .procmailrc
<snip>
PATH=/bin:/usr/bin
MAILDIR=/home/spool/mail
DEFAULT=$MAILDIR/jason
HOME=/home/sites/site14/users/jason
LOGFILE=$HOME/.razor/procmail.log
# Pipe the mail through spamassassin
:0fw
* < 256000
| spamassassin
# Mails with a score of 10 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt).
:0:
* ^X-Spam-Status:.*hits=[1-9][0-9]
$MAILDIR/jason.spam
# All other mail tagged as spam (eg. with a score higher than the set
# threshold) is tagged as "Probably SPAM"
:0 fBw
* ^X-Spam-Status: Yes
| formail -i "Subject: Warning: Message Probably SPAM"
# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
:0 H
* ! ^From[ ]
* ^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e 's/^rom /From /'
}
</snip>
Any pointers would be appreciated. I have read parts of the procmail
documentation but procmail is quite large and I was hoping someone could
provide a quick fix since this is the only procmail I will hopefully have
to learn. :)
Many thanks,
Josh Trutwin
http://trutwins.homeip.net
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk