This project is read-only.

Email details all NULL

Jul 1, 2013 at 12:12 PM
Hey there,

I tried to download a list of all the emails sitting in the INBOX folder through:
Messages = client.Folders["INBOX"].Search("ALL", false);
where Messages is a List<> of ImapX Message objects. When the statement executes the list has the correct number of emails in it (around 1100 in total) but all the details in the email messages are either null or empty strings.

Any idea why?

Thanks,
Jul 1, 2013 at 12:57 PM
Edited Jul 1, 2013 at 12:58 PM
Hi Magnanimousness,

if you call the search command and set the second argument to false, only some information will be requested from the server, so you can manually process every single message later. Just call the command setting second argument to true, to automatically download all the message data, or call the Process method on a single message to download its information.

I know it's not convinient, especially with a great number of messages, and I'm working on providing a better design in the next release.


Best regards,

Pavel Azanov
Jul 1, 2013 at 1:07 PM
Oh okay great, that worked like a charm :)

Thanks Pavel!
Jul 1, 2013 at 2:24 PM
You're welcome!