i've read through posted issues regarding the MailParser. i didn't spot one which corresponds to what i've encountered:
if the mail has more than 1 text block (eg, in a multipart message), the last block processed with overwrite any previous block processed.
the HandlePart() sub of the parser, for example, is passed a block of data (Body as string) for processing.
... If Regex.Matcher2("Content-Type:\s*text/html", _
Regex.CASE_INSENSITIVE, Headers).Find Then
Msg.Body = Body
(Msg is the object which is ultimately returned to the main part of the app.)
as a result, in cases where there is more than one instance of a text block, the last block processed with overwrite any previous block processed. in my case, i changed the assignment shown above to:
msg.body = msg.body & "<br>" & Body
which did the trick. for text/plain, i use CRLF to join multiple blocks. i'm wondering if anyone else has encountered the problem. and if anyone might want to suggest a better one to handle it. thanks in advance.
-go
if the mail has more than 1 text block (eg, in a multipart message), the last block processed with overwrite any previous block processed.
the HandlePart() sub of the parser, for example, is passed a block of data (Body as string) for processing.
... If Regex.Matcher2("Content-Type:\s*text/html", _
Regex.CASE_INSENSITIVE, Headers).Find Then
Msg.Body = Body
(Msg is the object which is ultimately returned to the main part of the app.)
as a result, in cases where there is more than one instance of a text block, the last block processed with overwrite any previous block processed. in my case, i changed the assignment shown above to:
msg.body = msg.body & "<br>" & Body
which did the trick. for text/plain, i use CRLF to join multiple blocks. i'm wondering if anyone else has encountered the problem. and if anyone might want to suggest a better one to handle it. thanks in advance.
-go