MCP patching SpamAssassin

Julian Field MailScanner at
Wed Jun 20 18:38:32 IST 2007

Hash: SHA1

After looking at the source for 3.2.1, I have come up with a far easier 
way of making SpamAssassin search binary attachments as well as just 
text and HTML, when doing MCP tests.

The new method involves just a single 1-line patch to

This will be in the next release, and should be far simpler to maintain 
across future versions, as it works at a much lower level, in a utility 
function for reading the MIME type of an attachment.

I would advise anyone using SpamAssassin version 3.2.0 or higher to 
switch to the new method when I release it.


- -- 
Julian Field MEng CITP
Buy the MailScanner book at

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit

Version: PGP Desktop 9.6.1 (Build 1012)
Charset: ISO-8859-1


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit

More information about the MailScanner mailing list