P
Paul Martin
Guest
I have a custom script for learning customer spam emails that was largely proving worthless because the sa-learn mail size per message was capped at 256k. After a bit of digging, I found out how to change that (at least on a CentOS5.3 system).
1) go to /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin
2) edit ArchiveIterator.pm
3) you'll see a line near the top that looks like: use constant BIG_BYTES => 256*1024;
4) change the 256 to whatever you want. I chose 1024 because that seemed to provide the best bang for my buck.
Be careful though, if you set it too high, you could very well bring the server to its knees.
Hope this helps someone out there.
1) go to /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin
2) edit ArchiveIterator.pm
3) you'll see a line near the top that looks like: use constant BIG_BYTES => 256*1024;
4) change the 256 to whatever you want. I chose 1024 because that seemed to provide the best bang for my buck.
Be careful though, if you set it too high, you could very well bring the server to its knees.
Hope this helps someone out there.