(Cannot log in to JIRA for some reason so I am replying to the list instead, sorry.)
It's a folded header as per RFC 2231, see http://tools.ietf.org/search/rfc2231. See also MIME4J-109. I'm not sure if it is okay to use that mechanism for the boundary parameter though. But I guess it probably is... Markus On Wed, Jan 8, 2014 at 4:50 PM, Oleg Kalnichevski (JIRA) < [email protected]> wrote: > > [ > https://issues.apache.org/jira/browse/MIME4J-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865569#comment-13865569] > > Oleg Kalnichevski commented on MIME4J-235: > ------------------------------------------ > > {noformat} > ----------MB_8CFAAB0E6BFFBB7_16A8_733DA_webmail-d055.sysops.aol.com > Content-Type: multipart/ALTERNATIVE; > boundary*0=-------- > MB_8CFAAB0E6BFFBB7_16A8_733DB_webmail-d055.sysops.aol.co; > boundary*1=m > {noformat} > > Can anyone tell me if the Content-Type header is malformed or not? It > looks malformed to me. > > Mime4j clearly does not support such header folding. So, all I can think > of doing is throwing a more meaningful exception. > > Oleg > > > NPE during parsing of an message > > -------------------------------- > > > > Key: MIME4J-235 > > URL: https://issues.apache.org/jira/browse/MIME4J-235 > > Project: James Mime4j > > Issue Type: Bug > > Components: parser (core) > > Affects Versions: 0.8.0 > > Reporter: Mariano Kamp > > Attachments: error-205-NullPointerException.mbox, > error-95-NullPointerException.mbox > > > > > > Ran into an NPE. Reported it to the mailing list, was referred to here. > > > http://mail-archives.apache.org/mod_mbox/james-mime4j-dev/201401.mbox/browser > > The linked message also contains the offending mail as well as the full > strack trace. > > Don't see how I could upload the file here. > > java.lang.NullPointerException > > at > > > org.apache.james.mime4j.io.MimeBoundaryInputStream.<init>(MimeBoundaryInputStream.java:67) > > at > > > org.apache.james.mime4j.stream.MimeEntity.createMimePartStream(MimeEntity.java:366) > > at > > org.apache.james.mime4j.stream.MimeEntity.advance(MimeEntity.java:320) > > at > > > org.apache.james.mime4j.stream.MimeTokenStream.next(MimeTokenStream.java:368) > > at > > > org.apache.james.mime4j.parser.MimeStreamParser.parse(MimeStreamParser.java:176) > > at > > > org.apache.james.mime4j.message.DefaultMessageBuilder.parseMessage(DefaultMessageBuilder.java:316) > > at com.mboxanalytics.util.MboxUtil.parseMessage(MboxUtil.java:95) > > > > -- > This message was sent by Atlassian JIRA > (v6.1.5#6160) >
