You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not posting the whole log, because it's quite huge, but it's clear that the server returns both BODY[TEXT] and BODY[HEADER] sections.
However, the resulting ImapMessage object doesn't include text body. getBody returns org.apache.james.mime4j.dom.Multipart with 0 parts.
I debugged the code a bit. Looks like each of the sections is parsed separately, and then the "header" section overwrites the "text" section in the resulting ImapMessage. If I don't query header, there's no issue - the body contains the text.
I don't know if this can be fixed somehow with current ImapMessage implementation. It has only one body property, and it's not clear how to combine all the sections into a single org.apache.james.mime4j.dom.Message, but current behavior definitely looks wrong.
The text was updated successfully, but these errors were encountered:
I'm trying to load a message with
BODY[TEXT]
andBODY[HEADER]
:According to the trace logs, everything is fine:
Not posting the whole log, because it's quite huge, but it's clear that the server returns both
BODY[TEXT]
andBODY[HEADER]
sections.However, the resulting ImapMessage object doesn't include text body.
getBody
returnsorg.apache.james.mime4j.dom.Multipart
with 0 parts.I debugged the code a bit. Looks like each of the sections is parsed separately, and then the "header" section overwrites the "text" section in the resulting ImapMessage. If I don't query header, there's no issue - the body contains the text.
I don't know if this can be fixed somehow with current ImapMessage implementation. It has only one
body
property, and it's not clear how to combine all the sections into a singleorg.apache.james.mime4j.dom.Message
, but current behavior definitely looks wrong.The text was updated successfully, but these errors were encountered: