http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4928
Summary: Hardcoded 9Mb max message size limit for spamc
Product: Spamassassin
Version: 3.1.1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: spamc/spamd
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Hard-coded ~9.53Mb max message size for spamc and incorrect exit value.
Line 950 of libspamc.c:
if ((m->msg_len > 9999999) || ((len + 27) >= (bufsiz - len))) {
_use_msg_for_out(m);
return EX_OSERR;
}
Spamc's man page indicates a default max message size of 250Kb. It also
indicates the "-s" as modifying this default. The 9.53Mb hard limit is not
mentioned anywhere within the spamassassin documentation (man page/perl POD/wiki
etc).
When this branch is excuted the code exits with value "71". This is defined in
spamc's man page as "EX_OSERR system error (e.g., can't fork)".
Not sure why there is a hard-coded limit for message size (with no associated
warnings in documenation). If it needs to remain this branch should probably
exit with a different, new exit value e.g., "EX_MSGSIZE 79 Message is larger
than maximum size of 9.53Mb) as well as associated change to man page.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.