[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing of IMAP Mime Emails with gb.mime fails


Am 24.10.24 um 09:17 schrieb Claus Dietrich:

Hi

I started to work on an IMAP-client user control and tried to parse a received Mime-Email with gb.mime. I always get the error "Unable to parse message".

The email is fetched from the server with

   <tag> fetch <n> BODY[]

and the parsing is done with

   Dim hMIME As MimeMessage

   hMime = New MimeMessage(File.Load("ImapMimeEmail.txt")) <--- where the error occurs

When I load ImapMimeEmail.txt in Thunderbird, the entire message is displayed properly including all attachments.

Does anyone have an idea what could be wrong?

Claus

Found it. The received Mime-message contains a leading line inserted by the IMAP protocol. When I remove it the parser doesn't throw the error any longer.

Regards

Claus

References:
Parsing of IMAP Mime Emails with gb.mime failsClaus Dietrich <claus.dietrich@xxxxxxxxxx>