After reading several threads and some Googling I decided on this recipe:
:
SUBJECT=`formail -x Subject:`
:0
* ? (echo "$SUBJECT" | egrep -iqf $PMDIR/spam_subject)
{
LOG="subject"
:0hfw
| formail -I "Subject: [SPAM] $SUBJECT"
}
This as the last recipe in .procmailrc works just fine. However, I want it to
work where there last statement in .procmailrc is:
:0
! user(_at_)anotherhost(_dot_)com
I tried various combinations of using :0c and putting a delivery rule inside
the
{}'s. Do I need to pipe the message into sendmail?
Thanks for any thoughts/help.
_____
Douglas Denault
http://www.safeport.com
doug(_at_)safeport(_dot_)com
Voice: 301-469-8766
Fax: 301-469-0601
____________________________________________________________
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