Bug 7475 - only skip processing large attachments
Summary: only skip processing large attachments
Status: RESOLVED DUPLICATE of bug 6582
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: 3.4.0
Hardware: PC Linux
: P2 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-04 12:14 UTC by Brian J. Murrell
Modified: 2019-07-31 05:27 UTC (History)
3 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Brian J. Murrell 2017-10-04 12:14:07 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.
Comment 1 John Hardin 2017-10-05 01:24:48 UTC
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.
Comment 2 Kevin A. McGrail 2018-08-28 23:24:14 UTC
Agreed. I use a method in MD that truncates large messages for just this reason.
Comment 3 Henrik Krohns 2019-07-31 05:27:42 UTC
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 ***