On 14 Mar 2015, at 12:55, David F. Skoll wrote:
[...]
I can't answer for Kevin, but what we do is this: For oversize
messages, we remove non text/* attachments.  If they're still
oversize, we truncate the text/plain parts.  If they're still
oversize, we truncate the text/html parts.  We do this very carefully
with MIME::tools to ensure that SpamAssassin always sees a valid MIME
message and not (for example) one with a missing boundary.

We use MIMEDefang for SpamAssassin integration, so we can play whatever
tricks we like with the data that gets passed to SpamAssassin without
actually messing with the original message.

Is the code for doing this shared anywhere or is it sharable? Please?

(1. I'm lazy 2. I'm not egotistical enough to think my own MD code wouldn't be objective worse than yours)

Reply via email to