While I'm waiting for procmail mailing list posting privileges or something, I might as well ask here.
Might I combine this .procmailrc, :0: * ^X-Spamdealer-Status: Big Mail/big-possible-spam/ :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* <--PS: no shorter way? Mail/almost-certainly-spam/ :0: * ^X-Spam-Status: Yes Mail/probably-spam/ and the following shell script, into just one procmailrc? Any stdout is to cause the MTA to bounce that stdout back to where the mail supposedly came from. #!/bin/sh # spamdealer/spamdealer -- stdin: message, stdout: if spam: report to be bounced to sender # http://jidanni.org/comp/spam/spamdealer.html # I give up tring to handle various SA versions. This works with SA 2.55 max=200000 s=$HOME/spamdealer; err=$s/errors PATH=$HOME/bin:$PATH exec 2>> $err perhaps='It seems I might have been sent a mail from you. If so:' if test $1 -gt $max then f=$s/big-message; test -r $f && cat $f||{ #0 sized $f will turn off the bounce echo $perhaps echo The message was too big! I might not see it soon. } echo Size=$1, maximum=$max bytes. { echo "X-Spamdealer-Status: Big **** SIZE=$1 ****"; cat;}|procmail else umask 077; tmp=/tmp/spamdealer$$ LC_ALL=C spamassassin -e > $tmp||{ f=$s/spam-message test -r $f && cat $f||{ #custom message echo $perhaps echo Oops! SpamAssassin said it looked like spam. I might not see it soon. } awk '/Content analysis details:/,e=!/points/{if(e)exit;print}' } procmail<$tmp && rm $tmp fi # We return procmail's return value so exim will tell the sender # something was wrong. That something goes into $err for us to check # upon our call to ./reporter. But when does procmail return # non-zero? Its man page doesn't say. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk