Maybe this is a stupid question, but why doesn't spamc return different
error codes; one for "can't communicate with spamd", another for "e-mail
is spam", etc.

> -----Original Message-----
> From: David B Funk [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 09, 2004 8:25 PM
> To: Jason Borkowsky
> Cc: [EMAIL PROTECTED]
> Subject: Re: spamc exit codes
> 
> On Tue, 9 Mar 2004, Jason Borkowsky wrote:
> 
> > >    Run messages through a default spamc to a temp file, grab the
spam
> > > score, and do with that what you want.  Double-scanning is not the
> > > answer, especially if you've got a busy site.
> >
> > Actually, I tried exactly this, and then sent a "normal heavy" load
> through
> > my SpamAssassin script to test it, and there were times when the
temp
> file
> > would be overwritten before the current spamc process was done with
it.
> I
> > found you have to keep the data flowing (such as sequential pipes)
> otherwise
> > you have to start locking files.
> 
> Use "mktemp" (or "tmpfile", depending upon your context) to create a
> temporary file with a unique name, then there's no danger of
overwriting.
> 
> 
> --
> Dave Funk                                  University of Iowa
> <dbfunk (at) engineering.uiowa.edu>        College of Engineering
> 319/335-5751   FAX: 319/384-0549           1256 Seamans Center
> Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
> #include <std_disclaimer.h>
> Better is not better, 'standard' is better. B{
> ------------------------------------------------------------
> Mail was checked for spam by the Freeware Edition of No Spam Today!
> The Freeware Edition is free for personal and non-commercial use.
> You can remove this notice by purchasing a full license! To order
> or to find out more please visit: http://www.no-spam-today.com


Reply via email to