This project is read-only.

All messages are empty

Mar 10, 2012 at 5:53 PM
Edited Mar 10, 2012 at 5:54 PM

Hello, I have a problem. 

I followed an example in InterIMAPConsoleTest in Program.cs. 

Here is the code I have:

 

IMAPConfig config = new IMAPConfig("mail.xxxxx.ru", "mail@xxxxx.ru", "xxxxx", false, true, "");
IMAPClient client = null;
try
{
	client = new IMAPClient(config, null, 5);
	IMAPFolder f = client.Folders["INBOX"];
	f.Select();

	foreach (IMAPMessage msg in f.Messages)
	{
		IMAPMessage fullmessage = f.GetMessageByID(msg.Uid);
		ParseAndSave(fullmessage);
	}
}
catch (IMAPException e)
{
	Console.WriteLine(e.Message);
	return;
}
So, in this code in fullmessage I have only Uid set, all other fields are either null or have empty default value.
What could be the problem causing this behavior? 

I've already tried to use RefreshData method on my fullmessage, but with no success.

 

Appreciate any help.