Great idea to run directly to procmail Rich! So, here's my
procmailrc:
MAILDIR=/home/kevinc/Mail
SHELL=/bin/sh
LOGFILE=/home/kevinc/var/log/procmail
VERBOSE=yes
# Tag spam, pass non-spam untouched.
:0fw
| /home/kevinc/bin/spamc -p 7783
# File the spam.
:0:
* ^X-Spam-Status: Yes
spamspool
# put all mail in local spool
:0:
spool
When I (as my own non-privileged user) 'cat sample-spam.txt |
procmail procmailrc' then I get these results in the procmail log
file:
procmail: [5162] Mon Apr 1 14:16:27 2002
procmail: Executing "/home/kevinc/bin/spamc,-p,7783"
procmail: [5162] Mon Apr 1 14:16:27 2002
procmail: Match on "^X-Spam-Status: Yes"
procmail: Locking "spamspool.lock"
procmail: Assigning "LASTFOLDER=spamspool"
procmail: Opening "spamspool"
procmail: Acquiring kernel-lock
procmail: Unlocking "spamspool.lock"
From xl6Ety00V(_at_)fismat1(_dot_)fcfm(_dot_)buap(_dot_)mx Mon Apr 1
14:16:27 2002
Subject: *****SPAM***** Home Based Business for Grownups
Folder: spamspool 6074
Then I (as my own non-privileged user) 'cat sample-spam.txt |
/usr/lib/sendmail kevinc' and I see this in the log file:
procmail: [4396] Mon Apr 1 14:24:31 2002
procmail: Executing "/home/kevinc/bin/spamc,-p,7783"
procmail: [4396] Mon Apr 1 14:24:31 2002
procmail: No match on "^X-Spam-Status: Yes"
procmail: Locking "spool.lock"
procmail: Assigning "LASTFOLDER=spool"
procmail: Opening "spool"
procmail: Acquiring kernel-lock
procmail: Unlocking "spool.lock"
From kevinc(_at_)tekicl2b(_dot_)cse(_dot_)tek(_dot_)com Mon Apr 1
14:24:31 2002
Subject: Home Based Business for Grownups
Folder: spool 5351
procmail: Notified comsat: "kevinc(_at_)0:/home/kevinc/Mail/spool"
Any ideas folks?
Thanks again....
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail