John Hardin <jhar...@impsec.org> writes:

>> How do I found out what the size limit is? And I still need the check,
>> because when the size limit changes (or the wrong one is used) you
>> will get the error.
>
> Per "man spamc":
>
>    -s max_size, --max-size=max_size
>        Set the maximum message size which will be sent to spamd -- any
>        bigger than this threshold and the message will be returned
>        unprocessed (default: 500 KB). If spamc gets handed a message
>        bigger than this, it won't be passed to spamd.  The maximum
>        message size is 256 MB.
>
>        The size is specified in bytes, as a positive integer greater
>        than 0.  For example, -s 500000.
>
> I'd suggest doing a size test and explicitly telling spamc to use the
> same size limit.

That is the safest. ;-) Only problem could be maintainability.
The default value of 500 KB is a good one?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Reply via email to