Re: line wrapping in MIME
Chris Burdess <[email protected]> Mon, 20 Jun 2005 19:18:25 +0100
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Organization | the mireval massive |
| Message-ID | <[email protected]> |
Archit Shah wrote: > 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. Thanks Archit, this patch has now been applied. -- Chris Burdess