Re: can procmail report how many msgs it has processed during processing
Harry Putnam <[email protected]>
| Newsgroups | gmane.mail.procmail |
|---|---|
| Organization | Still searching... |
| Message-ID | <[email protected]> |
Bart Schaefer <[email protected]> writes: [...] > So how are you feeding those messages to procmail and spamassassin? > If, for example, you are using "formail -s" to explode a mailbox file > into "procmail -m" where the rcfile passed as procmail's argument > contains a recipe for spamassassin, then formail will maintain a > counter in the $FILENO environment variable, so you just need to add > to your rcfile something like That sounds like exactly what I'm doing: cat spam-ham-mixed | formail -e -s procmail -m ${sandbox}/.prc Is there a better way? My test result and procrc file are posted below. ------- --------- ---=--- --------- -------- But, I really need some coaching about how to do what I'm trying to do. That is, to get my ancient procmailrc of long, long standing, up to speed ... its doing very little to stop spam at the moment. My plan was to run lots of mail thru spamassassin via procmail then hand teach SA to recognize my spam. I'd like to start another thread on that specific subject especially if you are willing to join me there. In fact I already attempted a cross post to the gmane groups for `procmail; and `spamassassin', but haven't seen it show up... perhaps cross posting is not allowed? ------- --------- ---=--- --------- -------- Trying: > LOG="Processing message $FILENO > " That doesn't seem to be working here With: LOG=" Processing: <$FILENO> " in the rc file, all I get in the log is Processing: <> Here is the full sandbox .prc ------- 8<--------- ---=--- 8<--------- -------- #shell-script-*-- PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin SHELL=/bin/sh MAILDIR=/home/reader/projects/reader/proc/spool LOGFILE=/home/reader/projects/reader/proc/log/log ORGMAIL=/home/reader/projects/reader/proc/spool/$LOGNAME DEFAULT=$ORGMAIL VERBOSE=YES LOG=" Processing: <$FILENO> " TRAP='formail -XMessage-Id: && date +"%b %d %T%nSTOP"' PSCRIPTS="/home/reader/projects/perl" SCRIPTS="/home/reader/scripts/" MAILARC="/home/reader/proc/spool" :0fw | /usr/bin/spamc :0: * ^X-Spam-Status: Yes spama_spam_.in :0 post_.in