line wrapping in MIME
Archit Shah <[email protected]> Fri, 17 Jun 2005 10:44:39 -0400
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Classpathx-javamail mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpathx-javamail