classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-javamail] line wrapping in MIME


From: Archit Shah
Subject: [Classpathx-javamail] line wrapping in MIME
Date: Fri, 17 Jun 2005 10:44:39 -0400
User-agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513)

While RFC2822 indicates that lines must be wrapped at 998 characters, it suggests that the MIME RFCs should not be ignored, "As was stated earlier, there are other standards documents, specifically the MIME documents [RFC2045, RFC2046, RFC2048, RFC2049] that extend this standard to allow for different sorts of message bodies." RFC 2049 states "line wrapping or line truncation imposed by mail transports is STRONGLY DISCOURAGED, but unavoidable in some cases."

Attached is patch that removes line wrapping in the bodies of mime parts by eliminating the use of RFC2822OutputStream in MimeBodyPart and MimeMessage. Also attached is a JUnit test case for this behavior. This patch fixes test failures found when testing JOnAS with the classpathx Javamail implementation. Further testing is on going with results available on Monday.

 -- Archit

reply via email to

[Prev in Thread] Current Thread [Next in Thread]