This project is read-only.

Retrieving body of E-mail

May 4, 2011 at 11:15 AM

Hi,

I'm using the MailSystem.NET IMAP functionality to retrieve E-mail.

Connecting and login succeed and I see there are 4 messages on the server.
When I retrieve the messages I can read the subject, from/to etc. However, when I read the body only a fraction of the E-mail body is displayed.

Message msg = inbox.Fetch.MessageObject(i);
Console.WriteLine(msg.BodyHtml.Text);

How can I get the complete content of the E-mail body?

Regards,

Michel

May 21, 2011 at 3:32 PM

This seems to be the result of last change http://mailsystem.codeplex.com/SourceControl/changeset/changes/59386.

I do not know what is the reason of this change, but it seems to be absolute non logical.

If you remove it from your source code, the system would work fine.

Jul 12, 2011 at 11:46 AM

Hi,

I’ve encountered a similar problem and tracked it down to the Imap4Client class and the line 1099. Where there is a check whether a line starts with “+ ”. If so, the client stops reading the email in the middle which consequently causes an error when parsing. Thus it returns only a part of the email body.

 

Not entirely sure what it means and why it’s there as I haven’t been able to find anything about this in RFCs or anywhere.

 

Regards,

Jiri

Sep 13, 2011 at 3:46 PM
ukrtest wrote:

This seems to be the result of last change http://mailsystem.codeplex.com/SourceControl/changeset/changes/59386.

I do not know what is the reason of this change, but it seems to be absolute non logical.

If you remove it from your source code, the system would work fine.

Thanks for tracking this down and pointing this out.  Can anyone think of a reason why that change shouldn't be patched back out? It seems to pretty solidly break the ability to retrieve the body text of an e-mail.