>> I don't suppose someone out there could tell me how to tell procmail to >> simply accept the message and stop processing? >>
> Generally, just deliver it to $DEFAULT. Something like this (towards > the beginning of your procmailrc): > FROM=`formail -rx To: | sed -e 's/^[ ]*//'` > REALLY_FROM=`formail -x From: | sed -e 's/^[ ]*//'` > :0: > * $ ? /bin/fgrep -i -q "$FROM" $HOME/.white_list || \ > /bin/fgrep -i -q "$REALLY_FROM" $HOME/.white_list > $DEFAULT > This is not the most efficient way to do things, but shows the > basic idea. The "$" after the "*" tells procmail to do variable > substitution for "$FROM" and "$REALLY_FROM". The "$FROM" variable > contains the address as it appears on the "From " header (note the > space, no colon), for example, > [EMAIL PROTECTED] > The $REALLY_FROM variable contains the sender's address as it appears > on the "From:" header line (note the colon), for example, > "Alfred E. Newman <[EMAIL PROTECTED]>. > You can extend this to Reply-To and > other things as well. In this exapmple, $HOME/.white_list contains > white-listed addresses one per line. > We could dress up the pattern match to make sure the matech is an exact > match on the entire line in the white list, and combine the whole thing > into one "egrep" call: > :0: > * $ ? /bin/egrep -i -q "^($FROM|$REALLY_FROM)\$" $HOME/.white_list > $DEFAULT > (The \$ above escapes $ from procmail's grasp.) > but this has problems that need to be addressed, because $REALLY_FROM > might use the paren notation for an address, as in > [EMAIL PROTECTED] (Alfred E. Newman) > and this will mess up egrep. In general, to make things right, if > you use egrep, you'll need to backslash quote all characters that > are "magic": ?, +, {, |, ( and ). This is one hellaciously good idea Gary. It works like a charm. Looking at my daily email, a goodly portion comes from addresses I know, usually systems reporting status. I'm going to go over to bugzilla and post this as an enhancement. If this were internal to spamc (not spamd) it would produce a huge boost in performance. Could even stick in a header that says "SPAMD BYPASSED". -- Jack Gostl [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk