SA Bugzilla – Bug 7475
only skip processing large attachments
Last modified: 2019-07-31 05:27:42 UTC
While I can understand why spamassassin has a limit on the size of messages that it will process, I think there is a reasonable middle-ground between scan and don't scan in the case of such messages. Since such large messages are usually due to large attachments, such as zip files, or graphic (i.e. JPEG, etc.) images, why not process the message but just skip the large attachments? There is a lot (i.e. in headers, etc.) that can indicate that a message is spam without even looking at the attachment, or even just looking at the attachment's headers but without running the content through the expensive scanning process.
N.B.: This would need to be optional, as plugins might want to see those attachments - e.g. an OCR plugin or an archive included filenames extractor.
Agreed. I use a method in MD that truncates large messages for just this reason.
body_part_scan_size was added in 3.4.3, no reason to skip big messages anymore. *** This bug has been marked as a duplicate of bug 6582 ***