<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>InterIMAP</title><link>http://interimap.codeplex.com/project/feeds/rss</link><description>InterIMAP is a IMAP client library written in C&amp;#35; for .NET 2.0. Current features include&amp;#58; Support for SSL connections, listing folder contents, complete object model, exporting folder lists and messages as XML.      The original code was written by Rohit Joshi and can be found, along </description><item><title>New Post: Move/copy emails</title><link>http://interimap.codeplex.com/discussions/435986</link><description>&lt;div style="line-height: normal;"&gt;Moving and copying emails between folders is shown as &amp;quot;coming soon&amp;quot;; how is the work on this coming?&lt;br /&gt;
&lt;/div&gt;</description><author>apepper</author><pubDate>Sat, 09 Mar 2013 11:15:57 GMT</pubDate><guid isPermaLink="false">New Post: Move/copy emails 20130309111557A</guid></item><item><title>Source code checked in, #80132</title><link>http://interimap.codeplex.com/SourceControl/changeset/changes/80132</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:49:39 GMT</pubDate><guid isPermaLink="false">Source code checked in, #80132 20121001094939P</guid></item><item><title>Source code checked in, #80131</title><link>http://interimap.codeplex.com/SourceControl/changeset/changes/80131</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:43:10 GMT</pubDate><guid isPermaLink="false">Source code checked in, #80131 20121001094310P</guid></item><item><title>New Comment on "Documentation"</title><link>http://interimap.codeplex.com/documentation?&amp;ANCHOR#C24624</link><description>To clear the errors and to be able to call all object listed in code above i needed to include this ones also&amp;#10;&amp;#10;using InterIMAP&amp;#59;&amp;#10;using InterIMAP.Asynchronous.Client&amp;#59;&amp;#10;using InterIMAP.Common.Requests&amp;#59;&amp;#10;using InterIMAP.Common.Interfaces&amp;#59;</description><author>Ronglath</author><pubDate>Sat, 04 Aug 2012 01:47:25 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120804014725A</guid></item><item><title>New Comment on "Documentation"</title><link>http://interimap.codeplex.com/documentation?&amp;ANCHOR#C24616</link><description>Try use the library &amp;#58; https&amp;#58;&amp;#47;&amp;#47;imapx.codeplex.com&amp;#47;&amp;#10;&amp;#10;That library free, open source and have example at this &amp;#58; https&amp;#58;&amp;#47;&amp;#47;imapx.codeplex.com&amp;#47;wikipage&amp;#63;title&amp;#61;Sample&amp;#37;20code&amp;#37;20for&amp;#37;20get&amp;#37;20messages&amp;#37;20from&amp;#37;20your&amp;#37;20inbox&amp;#10;&amp;#10;Good Luck &amp;#58;&amp;#41;</description><author>PACCBET</author><pubDate>Fri, 03 Aug 2012 08:17:27 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120803081727A</guid></item><item><title>New Post: Chinese support</title><link>http://interimap.codeplex.com/discussions/389009</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;How to support chinese? I uesed this componet and connected to gmail, It can works very well except a little problem, that is many chinese text are not display correctly, Anybody can help me on the issue?&lt;/p&gt;
&lt;/div&gt;</description><author>Flyear</author><pubDate>Wed, 25 Jul 2012 15:33:30 GMT</pubDate><guid isPermaLink="false">New Post: Chinese support 20120725033330P</guid></item><item><title>New Post: All messages are empty</title><link>http://interimap.codeplex.com/discussions/348112</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello, I have a problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I followed an example in InterIMAPConsoleTest in Program.cs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the code I have:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;IMAPConfig config = &lt;span style="color: blue;"&gt;new&lt;/span&gt; IMAPConfig(&lt;span style="color: #a31515;"&gt;"mail.xxxxx.ru"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"mail@xxxxx.ru"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"xxxxx"&lt;/span&gt;, &lt;span style="color: blue;"&gt;false&lt;/span&gt;, &lt;span style="color: blue;"&gt;true&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;);
IMAPClient client = &lt;span style="color: blue;"&gt;null&lt;/span&gt;;
&lt;span style="color: blue;"&gt;try&lt;/span&gt;
{
	client = &lt;span style="color: blue;"&gt;new&lt;/span&gt; IMAPClient(config, &lt;span style="color: blue;"&gt;null&lt;/span&gt;, 5);
	IMAPFolder f = client.Folders[&lt;span style="color: #a31515;"&gt;"INBOX"&lt;/span&gt;];
	f.Select();

	&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (IMAPMessage msg &lt;span style="color: blue;"&gt;in&lt;/span&gt; f.Messages)
	{
		IMAPMessage fullmessage = f.GetMessageByID(msg.Uid);
		ParseAndSave(fullmessage);
	}
}
&lt;span style="color: blue;"&gt;catch&lt;/span&gt; (IMAPException e)
{
	Console.WriteLine(e.Message);
	&lt;span style="color: blue;"&gt;return&lt;/span&gt;;
}&lt;/pre&gt;
&lt;pre&gt;So, in this code in fullmessage I have only Uid set, all other fields are either null or have empty default value.&lt;/pre&gt;
&lt;pre&gt;What could be the problem causing this behavior?&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;I've already tried to use RefreshData method on my fullmessage, but with no success.&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;Appreciate any help.&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>NadyaChe</author><pubDate>Sat, 10 Mar 2012 17:53:56 GMT</pubDate><guid isPermaLink="false">New Post: All messages are empty 20120310055356P</guid></item><item><title>New Post: Windows Phone 7.5 Support?</title><link>http://interimap.codeplex.com/discussions/280617</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&amp;nbsp;&lt;span&gt;library&lt;/span&gt;&amp;nbsp;&lt;span&gt;support&lt;/span&gt;&amp;nbsp;&lt;span&gt;windows&lt;/span&gt;&amp;nbsp;&lt;span&gt;phone 7.5&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Do you know any&lt;/span&gt;&amp;nbsp;&lt;span&gt;IMAP&lt;/span&gt;&amp;nbsp;&lt;span&gt;library&amp;nbsp;&amp;nbsp;&lt;span&gt;that I can use&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span&gt;of&lt;/span&gt;&amp;nbsp;&lt;span&gt;this feature in&lt;/span&gt;&amp;nbsp;&lt;span&gt;Windows Phone&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Bye.&lt;/p&gt;
&lt;/div&gt;</description><author>felipebonezi</author><pubDate>Wed, 23 Nov 2011 18:44:06 GMT</pubDate><guid isPermaLink="false">New Post: Windows Phone 7.5 Support? 20111123064406P</guid></item><item><title>New Post: Flags not set</title><link>http://interimap.codeplex.com/discussions/274735</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I use gmail and the flags are not set when I get the message from Inbox.. Could you please help me with this issue..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ani&lt;/p&gt;
&lt;/div&gt;</description><author>anijoeroy</author><pubDate>Tue, 04 Oct 2011 16:23:49 GMT</pubDate><guid isPermaLink="false">New Post: Flags not set 20111004042349P</guid></item><item><title>New Post: Messages in subfolders and read the same message twice</title><link>http://interimap.codeplex.com/discussions/272117</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have 2 question.&lt;/p&gt;
&lt;p&gt;1. When i fetch the folderlist, i get 1 folder and 3 subfolders.&lt;/p&gt;
&lt;p&gt;INBOX, INBOX/Sent, INBOX/Trash and INBOX/Draft&lt;/p&gt;
&lt;p&gt;When i select INBOX, i get allt the messages in INBOX, but i don't the the sent messages when i select INBOX/Sent.&lt;/p&gt;
&lt;p&gt;And i'm using the sample code to fetch messages:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;            &lt;span style="color:blue"&gt;string&lt;/span&gt; name = listBox1.SelectedItem.ToString();
            folder = client.MailboxManager.GetFolderByPath(name);
            client.RequestManager.SubmitRequest(&lt;span style="color:blue"&gt;new&lt;/span&gt; MessageListRequest(folder, MessageListComplete), &lt;span style="color:blue"&gt;false&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why is it doing this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Question 2. If i select a message and reads it, then select an other, and then, select the first one again, it dose not display the first. The same for every message the i've already open.&lt;/p&gt;
&lt;p&gt;Why is it behaving like this? Is there any fix?&lt;/p&gt;
&lt;/div&gt;</description><author>EndLessMind</author><pubDate>Fri, 09 Sep 2011 23:05:01 GMT</pubDate><guid isPermaLink="false">New Post: Messages in subfolders and read the same message twice 20110909110501P</guid></item><item><title>New Post: Hello World example?</title><link>http://interimap.codeplex.com/discussions/263761</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Ok, I've switched over to the Async test app, and have had some success getting it to work and can see how to get attachments and html text. A couple more questions:&lt;/p&gt;
&lt;p&gt;I see how to set a message as "read" via the MailboxManager.MarkMessageAsRead() method, but I don't see something similar for deleting a message. I'm not sure what MailboxManager.RemoveMessage() does; it didn't delete the message for me, and I could not understand what the code was doing. I ended up using MailboxManager.SetMessageFlag( _msg, InterIMAP.Common.MessageFlag.Deleted, true, false ), and this seemed to do the trick, but I'm wondering if this is the "right" way to do the job.&lt;/p&gt;
&lt;p&gt;Next, I need to get notification when a new message arrives in the inbox. Unclear how to do this. I see the NewMessagesRequest class, but this looks like I need to use this in my own polling loop. I was thinking there might be an event that I could hook and be notified when a new message arrives instead of having to poll myself. If this exists, I can't find it. I could really use a little push in the right direction on how to monitor for new messages. Thanks!&lt;/p&gt;&lt;/div&gt;</description><author>darrylwhitmore</author><pubDate>Mon, 04 Jul 2011 18:02:06 GMT</pubDate><guid isPermaLink="false">New Post: Hello World example? 20110704060206P</guid></item><item><title>New Post: Hello World example?</title><link>http://interimap.codeplex.com/discussions/263761</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I've downloaded the source and am trying to figure out the InterIMAPConsoleTest app, with little success. Could someone give me a little hello world bit of code that will demonstrate how to connect and read an email that contains an attachment? I am getting
 the message, but the AttachmentsAvailable property is false and the Attachments collection has a length of zero, not to mention there seems to be no html data in the message. Clearly I'm missing something obvious, I'd appreciate any help, thanks!&lt;/p&gt;
&lt;/div&gt;</description><author>darrylwhitmore</author><pubDate>Sun, 03 Jul 2011 22:39:34 GMT</pubDate><guid isPermaLink="false">New Post: Hello World example? 20110703103934P</guid></item><item><title>New Post: Save as XML</title><link>http://interimap.codeplex.com/discussions/262996</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;In the original IMAP Library there was extensive code written to save the message as an XML document which I have been using to store the messages and read them in another application.&lt;/p&gt;
&lt;p&gt;I have been having a lot of problems with the original IMAP library and would prefer to switch to using this version as it appears to be more mature and up to date.&lt;/p&gt;
&lt;p&gt;Is there code in this version that I have not found that allows the mail message to be stored as an XML document with a structure similar to the original library?&lt;/p&gt;
&lt;/div&gt;</description><author>mschelstrate</author><pubDate>Mon, 27 Jun 2011 21:57:05 GMT</pubDate><guid isPermaLink="false">New Post: Save as XML 20110627095705P</guid></item><item><title>New Post: IMAPSearchQuery issue</title><link>http://interimap.codeplex.com/discussions/248167</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Unfortunately, I have not had an opportunity to test this library against Exchange 2010 see what differences exist between 2010 and 2007. I am considering a major overhaul of the library to remove the old synchronous code, simplify the API, and update it to use at least .NET 3.5, if not 4.0&lt;/p&gt;&lt;/div&gt;</description><author>JasonMiesionczek</author><pubDate>Wed, 22 Jun 2011 16:26:11 GMT</pubDate><guid isPermaLink="false">New Post: IMAPSearchQuery issue 20110622042611P</guid></item><item><title>New Post: Get new messages</title><link>http://interimap.codeplex.com/discussions/257607</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;In order to get the message information itself, you must fire off a FullMessageRequest passing in the client object, and the IMessage object.&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>JasonMiesionczek</author><pubDate>Wed, 22 Jun 2011 16:21:57 GMT</pubDate><guid isPermaLink="false">New Post: Get new messages 20110622042157P</guid></item><item><title>New Post: Get new messages</title><link>http://interimap.codeplex.com/discussions/257607</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I want to use this library, but somehow I can not get it to work. Only the sync model, but it does not get maintained anymore, so I do not want to use that.&lt;/p&gt;
&lt;p&gt;I have det following code:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;using&lt;/span&gt; System;
&lt;span style="color:blue"&gt;using&lt;/span&gt; System.Collections.Generic;
&lt;span style="color:blue"&gt;using&lt;/span&gt; System.Text;
&lt;span style="color:blue"&gt;using&lt;/span&gt; InterIMAP;
&lt;span style="color:blue"&gt;using&lt;/span&gt; InterIMAP.Asynchronous.Client;
&lt;span style="color:blue"&gt;using&lt;/span&gt; InterIMAP.Common.Interfaces;
&lt;span style="color:blue"&gt;using&lt;/span&gt; InterIMAP.Common.Requests;
&lt;span style="color:blue"&gt;using&lt;/span&gt; InterIMAP.Synchronous;
&lt;span style="color:blue"&gt;using&lt;/span&gt; InterIMAP.Common.Processors;

&lt;span style="color:blue"&gt;namespace&lt;/span&gt; IMAPTest
{
    &lt;span style="color:blue"&gt;class&lt;/span&gt; Program
    {
        &lt;span style="color:blue"&gt;private&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; FolderTreeCallback(IRequest req)
        {
            &lt;span style="color:green"&gt;//throw new NotImplementedException();&lt;/span&gt;
        }

        &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; nmr_NewMessageRequestCompleted(IMessage[] messages)
        {
            &lt;span style="color:blue"&gt;throw&lt;/span&gt; &lt;span style="color:blue"&gt;new&lt;/span&gt; NotImplementedException();
        }

        &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; Main()
        {
            IMAPConfig config = &lt;span style="color:blue"&gt;new&lt;/span&gt; IMAPConfig(&lt;span style="color:#a31515"&gt;&amp;quot;******&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;*****&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;******&amp;quot;&lt;/span&gt;, &lt;span style="color:blue"&gt;false&lt;/span&gt;, &lt;span style="color:blue"&gt;false&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;&amp;quot;&lt;/span&gt;);
            IMAPAsyncClient client = &lt;span style="color:blue"&gt;new&lt;/span&gt; IMAPAsyncClient(config, 5);
            client.Start();

            IBatchRequest batch = &lt;span style="color:blue"&gt;new&lt;/span&gt; SimpleBatchRequest();
            client.Start();

            FolderTreeRequest ftr = &lt;span style="color:blue"&gt;new&lt;/span&gt; FolderTreeRequest(&lt;span style="color:#a31515"&gt;&amp;quot;\&amp;quot;\&amp;quot;&amp;quot;&lt;/span&gt;, &lt;span style="color:blue"&gt;null&lt;/span&gt;);
            client.RequestManager.SubmitAndWait(ftr, &lt;span style="color:blue"&gt;false&lt;/span&gt;);

            &lt;span style="color:green"&gt;/*
             * Get INBOX folder
             */&lt;/span&gt;
            Console.WriteLine(&lt;span style="color:#a31515"&gt;&amp;quot;Get INBOX.&amp;quot;&lt;/span&gt;);
            IFolder folder = &lt;span style="color:blue"&gt;null&lt;/span&gt;;
            FolderDataRequest fdr = &lt;span style="color:blue"&gt;new&lt;/span&gt; FolderDataRequest(client.MailboxManager.GetFolderByPath(&lt;span style="color:#a31515"&gt;&amp;quot;INBOX&amp;quot;&lt;/span&gt;), &lt;span style="color:blue"&gt;null&lt;/span&gt;);
            fdr.RequestCompleted &amp;#43;= &lt;span style="color:blue"&gt;delegate&lt;/span&gt;(IRequest req)
            {
                FolderDataProcessor fdp = req.GetProcessorAsType&amp;lt;FolderDataProcessor&amp;gt;();
                folder = fdp.Request.Command.ParameterObjects[0] &lt;span style="color:blue"&gt;as&lt;/span&gt; IFolder;
            };

            batch.Requests.Add(fdr);

            client.RequestManager.SubmitBatchAndWait(batch, &lt;span style="color:blue"&gt;false&lt;/span&gt;);
            batch.Requests.Clear();

            MessageListRequest mlr = &lt;span style="color:blue"&gt;new&lt;/span&gt; MessageListRequest(folder, &lt;span style="color:blue"&gt;null&lt;/span&gt;);
            mlr.RequestCompleted &amp;#43;= &lt;span style="color:blue"&gt;delegate&lt;/span&gt;(IRequest req2)
            {
                MessageListProcessor fdp2 = req2.GetProcessorAsType&amp;lt;MessageListProcessor&amp;gt;();

                IFolder f2 = fdp2.Request.Command.ParameterObjects[0] &lt;span style="color:blue"&gt;as&lt;/span&gt; IFolder;
                Console.WriteLine(&lt;span style="color:#a31515"&gt;&amp;quot;Message List for {0} loaded. {1} Messages found.&amp;quot;&lt;/span&gt;, f2.Name, f2.Exists);

                IMessage[] messages = f2.Messages;
            };

            batch.Requests.Add(mlr);
            client.RequestManager.SubmitBatchAndWait(batch, &lt;span style="color:blue"&gt;false&lt;/span&gt;);

            Console.WriteLine(&lt;span style="color:#a31515"&gt;&amp;quot;Press any key&amp;quot;&lt;/span&gt;);
            Console.ReadLine();

            client.Stop();
        }
    }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the line &amp;quot;IMessage[] messages = f2.Messages&amp;quot; I would expect it to get all messages. But it does not. It only gives me empty objects. It does however gives me the message count!! But gives me empty objects.&lt;/p&gt;
&lt;p&gt;I have tried the sync model:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;using&lt;/span&gt; System;
&lt;span style="color:blue"&gt;using&lt;/span&gt; System.Collections.Generic;
&lt;span style="color:blue"&gt;using&lt;/span&gt; System.Linq;
&lt;span style="color:blue"&gt;using&lt;/span&gt; System.Text;
&lt;span style="color:blue"&gt;using&lt;/span&gt; InterIMAP;
&lt;span style="color:blue"&gt;using&lt;/span&gt; InterIMAP.Synchronous;

&lt;span style="color:blue"&gt;namespace&lt;/span&gt; InterIMAPSync
{
    &lt;span style="color:blue"&gt;class&lt;/span&gt; Program
    {
        &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; Main(&lt;span style="color:blue"&gt;string&lt;/span&gt;[] args)
        {
            IMAPConfig config = &lt;span style="color:blue"&gt;new&lt;/span&gt; IMAPConfig(&lt;span style="color:#a31515"&gt;&amp;quot;****&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;*****&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;*****&amp;quot;&lt;/span&gt;, &lt;span style="color:blue"&gt;false&lt;/span&gt;, &lt;span style="color:blue"&gt;false&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;&amp;quot;&lt;/span&gt;);
            InterIMAP.Synchronous.IMAPClient client = &lt;span style="color:blue"&gt;new&lt;/span&gt; InterIMAP.Synchronous.IMAPClient(config, &lt;span style="color:blue"&gt;null&lt;/span&gt;, 5);

            client.Logon();

            IMAPMessageCollection messages = client.GetSingleFolder(&lt;span style="color:#a31515"&gt;&amp;quot;INBOX&amp;quot;&lt;/span&gt;).Messages;

            &lt;span style="color:blue"&gt;foreach&lt;/span&gt; (IMAPMessage message &lt;span style="color:blue"&gt;in&lt;/span&gt; messages)
            {
                Console.WriteLine(message.ThreadTopic);

            }

            
        }
    }
}

&lt;/pre&gt;
&lt;/div&gt;
This works just fine, is easy readable, but it does not get maintained anymore, so I want to use the async way of doing it, but is there a way of making the async code as readable as the sync code?
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have tried to use this code snippet:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; Main()
{
IMAPConfig config = &lt;span style="color:blue"&gt;new&lt;/span&gt; IMAPConfig(&lt;span style="color:#a31515"&gt;&amp;quot;mail.myhost.tl&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;xxxx@xxx.xx&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;xxxxxx&amp;quot;&lt;/span&gt;, &lt;span style="color:blue"&gt;false&lt;/span&gt;, &lt;span style="color:blue"&gt;false&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;\&amp;quot;\&amp;quot;&amp;quot;&lt;/span&gt;);
IMAPAsyncClient client = &lt;span style="color:blue"&gt;new&lt;/span&gt; IMAPAsyncClient(config, 5);
client.Start();
client.RequestManager.SubmitAndWait(&lt;span style="color:blue"&gt;new&lt;/span&gt; FolderTreeRequest(&lt;span style="color:#a31515"&gt;&amp;quot;\&amp;quot;\&amp;quot;&amp;quot;&lt;/span&gt;, FolderTreeCallback), &lt;span style="color:blue"&gt;false&lt;/span&gt;);

NewMessagesRequest nmr = &lt;span style="color:blue"&gt;new&lt;/span&gt; NewMessagesRequest(client);
nmr.NewMessageRequestCompleted &amp;#43;= &lt;span style="color:blue"&gt;new&lt;/span&gt; NewMessagesRequest.NewMessageRequestCompletedHandler(nmr_NewMessageRequestCompleted);
&lt;span style="color:green"&gt;//nmr.Start(); // checks for new messages in all folders&lt;/span&gt;
IFolder folder = client.MailboxManager.GetFolderByPath(&lt;span style="color:#a31515"&gt;&amp;quot;INBOX&amp;quot;&lt;/span&gt;);
nmr.Start(folder); &lt;span style="color:green"&gt;// checks for new messages in the INBOX folder only&lt;/span&gt;
}

&lt;span style="color:blue"&gt;private&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; FolderTreeCallback(IRequest req)
{
&lt;span style="color:green"&gt;// whatever logic you need to do to indicate the process has completed.&lt;/span&gt;
}

&lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; nmr_NewMessageRequestCompleted(IMessage[] messages)
{
&lt;span style="color:blue"&gt;throw&lt;/span&gt; &lt;span style="color:blue"&gt;new&lt;/span&gt; NotImplementedException();
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But this does not throw any exceptions. Or do anything expected. This is readable, but does not work :(&lt;/p&gt;
&lt;p&gt;Am I doing anything wrong in my examples (is there an more readable way of writing an async example that fetches all unseen messages from the server?)? Or is there an easier way of doing it, that I have not spotted?&lt;/p&gt;
&lt;p&gt;Hope to hear from someone.&lt;/p&gt;
&lt;/div&gt;</description><author>mslot</author><pubDate>Sat, 14 May 2011 08:19:07 GMT</pubDate><guid isPermaLink="false">New Post: Get new messages 20110514081907A</guid></item><item><title>New Comment on "Documentation"</title><link>http://interimap.codeplex.com/documentation?&amp;ANCHOR#C19616</link><description>Btw, I have added the client.Start&amp;#40;&amp;#41; to my code, and it still does not work.</description><author>mslot</author><pubDate>Fri, 13 May 2011 16:38:53 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20110513043853P</guid></item><item><title>New Comment on "Documentation"</title><link>http://interimap.codeplex.com/documentation?&amp;ANCHOR#C19615</link><description>Why cant I get this code to work&amp;#63;&amp;#10;&amp;#10;       static void Main&amp;#40;&amp;#41;&amp;#10;        &amp;#123;&amp;#10;            IMAPConfig config &amp;#61; new IMAPConfig&amp;#40;&amp;#34;mail.myhost.tl&amp;#34;, &amp;#34;xxxx&amp;#64;xxx.xx&amp;#34;, &amp;#34;xxxxxx&amp;#34;, false, false, &amp;#34;&amp;#92;&amp;#34;&amp;#92;&amp;#34;&amp;#34;&amp;#41;&amp;#59;&amp;#10;            IMAPAsyncClient client &amp;#61; new IMAPAsyncClient&amp;#40;config, 5&amp;#41;&amp;#59;&amp;#10;            client.RequestManager.SubmitAndWait&amp;#40;new FolderTreeRequest&amp;#40;&amp;#34;&amp;#92;&amp;#34;&amp;#92;&amp;#34;&amp;#34;, FolderTreeCallback&amp;#41;, false&amp;#41;&amp;#59;&amp;#10;  &amp;#10;            NewMessagesRequest nmr &amp;#61; new NewMessagesRequest&amp;#40;client&amp;#41;&amp;#59;&amp;#10;            nmr.NewMessageRequestCompleted &amp;#43;&amp;#61; new NewMessagesRequest.NewMessageRequestCompletedHandler&amp;#40;nmr_NewMessageRequestCompleted&amp;#41;&amp;#59;&amp;#10;            &amp;#47;&amp;#47;nmr.Start&amp;#40;&amp;#41;&amp;#59; &amp;#47;&amp;#47; checks for new messages in all folders&amp;#10;            IFolder folder &amp;#61; client.MailboxManager.GetFolderByPath&amp;#40;&amp;#34;INBOX&amp;#34;&amp;#41;&amp;#59;&amp;#10;            nmr.Start&amp;#40;folder&amp;#41;&amp;#59; &amp;#47;&amp;#47; checks for new messages in the INBOX folder only &amp;#10;&amp;#125;&amp;#10;&amp;#10;        private static void FolderTreeCallback&amp;#40;IRequest req&amp;#41;&amp;#10;        &amp;#123;&amp;#10;            &amp;#47;&amp;#47; whatever logic you need to do to indicate the process has completed.&amp;#10;        &amp;#125;&amp;#10;&amp;#10;        static void nmr_NewMessageRequestCompleted&amp;#40;IMessage&amp;#91;&amp;#93; messages&amp;#41;&amp;#10;        &amp;#123;&amp;#10;            throw new NotImplementedException&amp;#40;&amp;#41;&amp;#59;&amp;#10;        &amp;#125;&amp;#10;&amp;#10;&amp;#63; The only thing I want this code to do is to throw an exception, but I do not get that exception. Can you tell me why, Jason&amp;#63; Or refer my to some examples that retrieve new messages.</description><author>mslot</author><pubDate>Fri, 13 May 2011 16:27:49 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20110513042749P</guid></item><item><title>New Post: IMAPSearchQuery issue</title><link>http://interimap.codeplex.com/discussions/248167</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have following code:&lt;/p&gt;
&lt;p&gt;IMAPConfig config = new IMAPConfig(&amp;quot;xxx&amp;quot;, &amp;quot;xxx&amp;quot;, &amp;quot;xxx&amp;quot;, false, true, &amp;quot;xxx&amp;quot;);&lt;br&gt;
IMAPClient mailClient = new IMAPClient(config, null, 1);&lt;/p&gt;
&lt;p&gt;IMAPFolder inboxFolder = mailClient.Folders[&amp;quot;INBOX&amp;quot;];&lt;br&gt;
IMAPMailAddress address = new IMAPMailAddress();&lt;br&gt;
address.Address = &amp;quot;&lt;a href="mailto:xxx@xx.com"&gt;xxx@xxx.com&lt;/a&gt;&amp;gt;&amp;quot;;&lt;/p&gt;
&lt;p&gt;IMAPSearchQuery query = new IMAPSearchQuery();&lt;br&gt;
query.From.Add(address);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;br&gt;
IMAPSearchResult sResult = inboxFolder.Search(query);&lt;/p&gt;
&lt;p&gt;The IMAPSearchResult is being empty. We were previously&amp;nbsp;connecting to Exchange 2007 and it worked correctly but now connecting to Exchange 2010 it does not seem to work. Any suggestions? Do I have to call a different method to do that? The problem seems
 to be when trying to do a Search using the From value.&lt;/p&gt;
&lt;p&gt;I do a search and it does not return values when migrated to Exchange 2010. We received values correctly when using Exchange 2007.&lt;/p&gt;
&lt;p&gt;Waiting for your kind help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>ruyeri23</author><pubDate>Wed, 02 Mar 2011 17:11:36 GMT</pubDate><guid isPermaLink="false">New Post: IMAPSearchQuery issue 20110302051136P</guid></item><item><title>New Post: Compile InterIMAPConsoleTest on VS2010</title><link>http://interimap.codeplex.com/discussions/247596</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I downloaded the library, and am trying it out. VS2010 converts it, issuing various warnings about those /// comments being missing.&lt;/p&gt;
&lt;p&gt;When I ran the InterIMAPConsole test program with my site's values, things went okay until this (line 49: Program.cs)&lt;/p&gt;
&lt;p&gt;IMAPFolder f = client.Folders[&amp;quot;INBOX&amp;quot;];&lt;/p&gt;
&lt;p&gt;// Loop until a new message gotten&lt;br&gt;
int[] msgCount = null;&lt;/p&gt;
&lt;p&gt;// Fixes, but causes infinite loop until message arrives&lt;br&gt;
//int[] msgCount = f.CheckForNewMessages();&lt;/p&gt;
&lt;p&gt;while (msgCount.Length == 0)&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgCount = f.CheckForNewMessages();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.Sleep(1000);&lt;br&gt;
}&lt;/p&gt;
&lt;p&gt;The null on the msgCount definition causes the program to throw an exception on the while condition a few lines down.&lt;/p&gt;
&lt;p&gt;I replaced the null with the f.Check, and that seems to get the code to do what was intended. However, since the exception causes the Console Window output to pause, and fixing it causes the window to scroll indefinitely until I exit debug (causing the window
 to go away), I was actually better off with my study by putting the null back in! Anyway, I think you would want to fix it in the source.&lt;/p&gt;
&lt;/div&gt;</description><author>sbowyer</author><pubDate>Fri, 25 Feb 2011 17:50:32 GMT</pubDate><guid isPermaLink="false">New Post: Compile InterIMAPConsoleTest on VS2010 20110225055032P</guid></item></channel></rss>