Am wanting to create a procmail filter where spamassassin is allowed to
markup and deliver spam as it is wont to do by default, but additionally
would like to drop a totally unaltered copy in another mailbox.

Ever since I let spamassassin run away and consume all my swap space
when fetchmail was downloading a mere 75 messages, have added a lock and
using spamc/spamd rather than spamassassin directly.

The key to procmail knowing what spamassassin thought of the message is
the exit code. Experimenting, I don't see spamc returning same as
spamassassin for exact same message:

dkelly@grumpy {1006} spamc -c < known.spam > /dev/null
dkelly@grumpy {1007} echo $status
0
dkelly@grumpy {1008} spamassassin -e < known.spam > /dev/null
dkelly@grumpy {1009} !echo
echo $status
5
dkelly@grumpy {1010} spamc -c < known.spam
16.5/5.0
dkelly@grumpy {1011} !ec
echo $status
0
dkelly@grumpy {1012} 

The manpage for spamc says:

       -c   Just check if the message is spam or not.  Set
            process exitcode to 1 is message is spam, 0 if not
            spam or processing failure occurs.  Will print
            score/threshold to stdout (as ints) or 0/0 if there
            was an error.

Says "0 if not spam or processing failure". Am I having a processing
error somewhere? Is not printing 0/0 to indicate error.

Using version 2.41, installed via FreeBSD port.

Am at loss as to what I might be doing wrong. It might not be me.


-- 
David Kelly N4HHE, [EMAIL PROTECTED]
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.


-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to