procmail
[Top] [All Lists]

procmail and SpamBayes issues

2011-08-16 10:19:23
hello

for some reason when my email is processed with procmail and SpamBayes
the email is lost.  I am new at this and I am not sure why. someone
told me that my procmailRC is wrong...  I keep on getting an procmail:
Program failure (2) of "/usr/bin/python" ERROR not sure how to correct
this any help would be much appreciated.  I know that the file is
where it is supose to be but for some reason it cannot be open.

I have included my log and also the procmail config file.

thanks

=======
LOG

From xxxxx(_at_)abc(_dot_)com  Sun Aug 14 18:19:13 2011
 Subject: test Sunday
 Folder: /var/mail/edward                                                 2910
procmail: [1818] Sun Aug 14 19:37:25 2011
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "MAILDIR=/Users/edward/Mail/Dovecot"
procmail: Assigning "SPAMBAYESDIR=/usr/local/cutedge/spambayes"
procmail: Assigning
"DELIVER=/usr/local/cutedge/dovecot/libexec/dovecot/deliver -c
/usr/local/cutedge/dovecot/etc/dovecot.conf"
procmail: Assigning "INCLUDERC=/etc/rc.custom1"
procmail: Assigning "LASTFOLDER=cat >> /Users/edward/postbayeslog"
From 
sentto-2240464-41435-1313364858-xxx=abc(_dot_)com(_at_)returns(_dot_)groups(_dot_)yahoo(_dot_)com
 Sun Aug 14 19:37:25 2011
 Subject:  Re: test
 Folder: cat >> /Users/edward/postbayeslog                               15416
procmail: Executing "cat >> /Users/edward/postbayeslog"
procmail: Executing "/usr/bin/python,/sb_filter.py,-f,-p,/hammiedb.pck"
/usr/bin/python: can't open file '/sb_filter.py': [Errno 2] No such
file or directory
procmail: Program failure (2) of "/usr/bin/python"
procmail: Rescue of unfiltered data succeeded
procmail: No match on "^X-SpamBayes-Classification: spam"
procmail: Incomplete recipe
procmail: Assigning
"PATH=/Users/edward/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11/bin"
From 
sentto-2240464-41435-1313364858-xxx=abc(_dot_)com(_at_)returns(_dot_)groups(_dot_)yahoo(_dot_)com
 Sun Aug 14 19:37:25 2011
 Subject: Re: test
 Folder: /var/mail/edward                                                15416


PROCMAIL RC

UMASK7

SHELL=/bin/sh
LOGFILE=/Users/tempo/procmail.log
VERBOSE=on
MAILDIR=/Users/tempo/Mail/Dovecot
SPAMBAYESDIR=/usr/local/cutedge/spambayes
DELIVER='/usr/local/cutedge/dovecot/libexec/dovecot/deliver -c /usr/
local/cutedge/dovecot/etc/dovecot.conf'

INCLUDERC=/usr/local/cutedge/spambayes/etc/rc.custom1

:0 fw
| /usr/bin/python /usr/local/cutedge/spambayes/sb_filter.py -f -p /
usr/
local/cutedge/spambayes/hammiedb.pck

:0
* ^X-SpamBayes-Classification: spam
{
INCLUDERC=/usr/local/cutedge/etc/rc.sendtodevnull

:0
|  -m Spam
#.Spam/
}

INCLUDERC=/usr/local/cutedge/spambayes/etc/rc.custom2

:0 w
|
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>