Package: spamc Version: 3.2.3-0.volatile1 Architecture: i386 Hi,
When attempting to learn a message as ham/spam using the spamc -L option, a message larger than the max-size setting (default 512000) will return an exit status of 98, which is not documented in the man page. Here is an example, feeding 524288 bytes (which is larger than the default max-size setting of 512000) into spamc, in 'learn' mode: $ dd if=/dev/zero bs=32k count=16 | spamc -L spam 16+0 records in 16+0 records out 524288 bytes (524 kB) copied, 0.0101715 seconds, 51.5 MB/s $ echo $? 98 The only clue as to what this exit status meant was the following message written to syslog for the 'mail' facility: spamc[28720]: skipped message, greater than max message size (512000 bytes) I determine this #define to be the source of the '98' exit status, which is actually a truncation of the decimal value 866 to 8 bits: spamc/libspamc.h:86:#define EX_TOOBIG 866 I've attached a suggested addition to spamc.pod to explain what a '98' exit status means. I'm hoping that all architectures truncate the exit status to 8-bits... Regards, -- Steven Chamberlain ste...@pyro.eu.org
diff -Nru spamassassin-3.2.5.orig/spamc/spamc.pod spamassassin-3.2.5/spamc/spamc.pod --- spamassassin-3.2.5.orig/spamc/spamc.pod 2008-06-10 10:21:07.000000000 +0100 +++ spamassassin-3.2.5/spamc/spamc.pod 2009-07-29 12:49:33.000000000 +0100 @@ -298,6 +298,7 @@ EX_PROTOCOL 76 remote error in protocol EX_NOPERM 77 permission denied EX_CONFIG 78 configuration error + EX_TOOBIG 98 message larger than max-size =head1 SEE ALSO