Weird MimeMessage.HtmlBody content when replying to a mail with MultipartAlternative body #1746
Unanswered
DierkDroth
asked this question in
Q&A
Replies: 1 comment 17 replies
-
|
Are you using the ReplyVisitor code? I'm just trying to understand what you are doing. Do you have an example message I can look at that causes this and what the "reply" message looks like at the end? You can censor all of the confidential info, all I really need to be able to see is the structure of the raw MIME. |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@jstedfast I have a hard time describing the problem which I experienced today when trying to compose a reply to a mail, using your MailVisitor logic.
Let me try to explain:
(MimeMessage.Body as MultipartAlternative) .Count == 2(MimeMessage.Body as MultipartAlternative)[0]is the plain text version((MimeMessage.Body as MultipartAlternative)[1] as MultiPart).Count == 3((MimeMessage.Body as MultipartAlternative)[1] as MultiPart)[0] is TextPart= reply to my orginal mail((MimeMessage.Body as MultipartAlternative)[1] as MultiPart)[2] is MimePart, not sure if that is relevant for this very problem((MimeMessage.Body as MultipartAlternative)[1] as MultiPart)[2] is TextPart= my original mailMimeMessage.HtmlBodyshows the reply to my orginal mail, which is the first TextPart -> likely expected, no?!?Now, after processing by MailVisitor the resulting
MimeMessage.HtmlBodypoints to the second TextPart -> this is wrongI'm not sure where to start looking. Would you have any idea?
Beta Was this translation helpful? Give feedback.
All reactions