I'm using the spamassassin perl script file, but I see what you mean. I also need to brush up
on my bash scripting skills ... how do you set the process exitcode assuming you can do that with
the perl script.


Joe Emenaker wrote:

Matt Silva wrote:

Hi there, Ive been searching to see if SA has an exit code if it marks the mail as spam, and
I couldn't find anything conclusive. How can I determine if it has marked the currently inspected
mail as spam?


A section of the manpage for spamc reads:

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


- Joe


--
Matt Silva
Empower Software Technologies, LLC
27851 Bradley Rd. Suite 120
Sun City, CA 92586

PH: (909) 672-6257
WB: www.storagecommander.com
EM: [EMAIL PROTECTED]



Reply via email to