Steve Shockley writes:

I understand the need for BOFHBADMIME, but my users complain.  I'd like to
modify Courier so it removes the bad characters (or replaces them with "?")
instead of reformatting the message.  (I've already changed it to an RFC822
attachment, which helps.)  Where would I find the code that checks the
messages for RFC compliance?

Courier's MIME parser is in the rfc2045 directory.

It's not like that there's a dedicated code that looks for invalid MIME
code.  librfc2045.a is a generic library that parses a message's MIME
structure, and generates a tree representation of its MIME structure.  Along
the way, invalid MIME coding is flagged.

The submit process, after parsing the incoming message using librfc2045.a,
checks for any errors and reports it accordingly.  You can look at the
errors being reported in courier/submit2.C, but you're not going to find
anything that tells you âwhereâ the problem is.



Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to