Howdy all,
        I am messing around with bogofilter and I want to have spamassassin
train it.  There is an example as to how to do this on the bogofilter
FAQ at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/bogofilter/bogofilter/doc/bogofilter-faq.html#spamassassin
but my problem with it is that it uses

| spamassassin -e 

to test whether the message is spam.  Not only am I now spawning
spamassassin twice for each message, but only one of them is with
'spamc'.  I guess what I am asking for is some advice as to how to trim
this procmailrc file down a little bit to do the same thing?  Lemme
apologize in advance for any "wrongness" in this procmail recipe.  I
suck at procmail.

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


-- 
Shane Hickey <[EMAIL PROTECTED]>: Nerd
http://www.nerddiary.org 
GPG KeyID: 777CBF3F
Key fingerprint: 254F B2AC 9939 C715 278C  DA95 4109 9F69 777C BF3F
Listening to: Echo & the Bunnymen - Over The Wall


-------------------------------------------------------
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