> -----Original Message-----
> From: Shane Hickey [mailto:[EMAIL PROTECTED] 
> 
> Howdy all,

Howdy Shane!  A good procmail book is "The Procmail Companion" by Martin
McCarthy.


> | spamassassin -e 

I could be wrong but I don't think you are limited to this.  I'll attempt
this but just looking at your script does not give me a real idea of what
you are looking to do.  I assume that you want to differentiate delivery for
SA low-score tagged messages and SA high-scrore tagged messages.  Also, I
assume you want to deliver a copy for bogofilter if SA tags the message as
spam.

I am not really sure about all the Bogofilter options so please excuse me if
this is not totally correct.  It also does not have logging,
initializations, and final delivery if the message is not tagged as spam.

Don't you still need a delivery for bogo-ham?


> :0 HBc
> * ? spamassassin -e
> #spam yields non-zero
> #non-spam yields zero
> | bogofilter -n
> #else (E)
> :0Ec
> | bogofilter -s
>  
> :0fw: $HOME/bogofilter.lock
> | bogofilter -e -p
>  
> :0e
> { EXITCODE=75 HOST }
>  
> :0fw: $HOME/spamassassin.lock
> * < 256000
> | spamc


Ignoring the Bogofilter IO test, let's change the above to:

:0 fw: $HOME/spamassassin.lock
* < 256000
* ! ^X-Spam-Status: Yes
| spamc


> :0:
> * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> /var/spool/caughtspam/spamassassin-high/.
>   
> :0:
> * ^X-Spam-Status: Yes
> /var/spool/caughtspam/spamassassin/.
>   
> :0:
> * ^X-Bogosity: Yes, tests=bogofilter
> /var/spool/caughtspam/bogo/.


# If SA did not tag the message as spam, then filter the message
# through Bogofilter and register as non-spam
:0 w
* ! ^X-Spam-Status: Yes
{
   :0 fw
   | bogofilter -n

   :0 :
   some-delivery-point
}


# If SA tags the message as spam then continue tests between { }
:0 
* ^X-Spam-Status: Yes
{
   # Filter the message through Bogofilter, register as spam
   :0 fw
   | bogofilter -s

   # Make a copy so delivery will not end script
   :0 c:
   * ^X-Bogosity: Yes, tests=bogofilter
   /var/spool/caughtspam/bogo/.

   # If the SA level is high, deliver to high-score folder
   :0 :
   * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
   /var/spool/caughtspam/spamassassin-high/.

   # If the previous recipe does not match, deliver to low-score folder
   :0 E:
   /var/spool/caughtspam/spamassassin/.
}


> :0
> * ^^rom[ ]
> {
>   LOG="*** Dropped F off From_ header! Fixing up. "
>     
>   :0 fhw
>   | sed -e '1s/^/F/'
> }



Hope this helps!

--Larry



-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to