<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>InterIMAP Forum Rss Feed</title><link>http://www.codeplex.com/InterIMAP/Thread/List.aspx</link><description>InterIMAP Forum Rss Description</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>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 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><item><title>New Post: A couple or problems</title><link>http://interimap.codeplex.com/Thread/View.aspx?ThreadId=242688</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I basically am looking to monitor a gmail account. I can log in and get all the items in the inbox - well, everything except the message bodies:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Getting message bodies:&lt;/strong&gt;&lt;br&gt;
OK, so first, here is some sample code that works - except that TextData, HtmlData, and the attachments are not there. Is there some method I need to call to populate that data? Also, ContentLoaded is false:&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;    IMAPClient client = &lt;span style="color:blue"&gt;new&lt;/span&gt; IMAPClient();
    client.Config = 
        &lt;span style="color:blue"&gt;new&lt;/span&gt; IMAPConfig(&lt;span style="color:#a31515"&gt;&amp;quot;imap.gmail.com&amp;quot;&lt;/span&gt;, 
            &lt;span style="color:#a31515"&gt;&amp;quot;awesome.duh-developer@gmail.com&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;secretpass&amp;quot;&lt;/span&gt;, &lt;span style="color:blue"&gt;true&lt;/span&gt;, &lt;span style="color:blue"&gt;true&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;&amp;quot;&lt;/span&gt;);
    client.Logon();

    &lt;span style="color:blue"&gt;foreach&lt;/span&gt; (IMAPMessage message &lt;span style="color:blue"&gt;in&lt;/span&gt; client.Folders[&lt;span style="color:#a31515"&gt;&amp;quot;INBOX&amp;quot;&lt;/span&gt;].Messages)
    {
            &lt;span style="color:green"&gt;// TextData is null&lt;/span&gt;
            model.Add(&lt;span style="color:blue"&gt;new&lt;/span&gt; MailModel()
            {
                From = message.From[0].DisplayName,
                &lt;span style="color:green"&gt;//Body = message.TextData.TextData,&lt;/span&gt;
                Subject = message.Subject,
                ItemDate = message.Date.ToLocalTime(),
                MailId = message.Uid,
                IsNew = message.Flags.New
            });
    }
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Any ideas on what I'm doing wrong here? I can see the from, to, subject, etc - but the actual message body is not there.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Seeing if a message is &amp;quot;new&amp;quot; or not:&lt;/strong&gt;&lt;br&gt;
From the code sample above, the message.Flags.New is ALWAYS false. This seemed like a nice way to differentiate if an e-mail is new or not but it doesn't work. Any idea what's wrong here? Is there any alternative to seeing if the message has been read or not?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Best-practices for monitoring for new messages:&lt;/strong&gt;&lt;br&gt;
IMAP natively supports the notion of &amp;quot;idle&amp;quot; where the caller will be notified when a new message arrives. I could find this in this implementation, is that supported? Or, should the developer just poll over 15 minutes or so? Also, I noticed that the IMAPClient
 doesn't implement IDisposable, which i would expect if the resources for that component (like the network stream) are to be cleaned up. Is it alright to use the code sample like above or is there some other calling convention that would be better? This is
 for a monitoring application that will run 24/7 and I don't want to have a memory leak.&lt;/p&gt;
&lt;p&gt;Anyone have any thoughts on these? thanks!&lt;/p&gt;
&lt;p&gt;-Rob&lt;/p&gt;
&lt;/div&gt;</description><author>RobSeder</author><pubDate>Fri, 21 Jan 2011 03:31:48 GMT</pubDate><guid isPermaLink="false">New Post: A couple or problems 20110121033148A</guid></item><item><title>New Post: Time Zone / Offset</title><link>http://interimap.codeplex.com/Thread/View.aspx?ThreadId=239676</link><description>&lt;div style="line-height: normal;"&gt;
&lt;pre&gt;&lt;span&gt;I'm looking at &lt;strong&gt;MessageHeaderProcessor.cs &lt;/strong&gt;and see this method. The regex knows to match the offset ([-]\d&amp;#43;), but doesn't capture or use it.&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;&lt;br&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;Am I missing something? Is this the actual place in code where dates are parsed? &lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;&lt;br&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;        private&lt;/span&gt; DateTime ParseDate(&lt;span&gt;string&lt;/span&gt; date)
        {
            &lt;span&gt;//Tue,  7 Apr 2009 09:04:02 -0700 (PDT)&lt;/span&gt;
            &lt;span&gt;string&lt;/span&gt; pattern = &lt;span&gt;@&amp;quot;^\w&amp;#43;[,]\s&amp;#43;(?&amp;lt;day&amp;gt;(\d&amp;#43;))\s&amp;#43;(?&amp;lt;month&amp;gt;(\w&amp;#43;))\s&amp;#43;(?&amp;lt;year&amp;gt;(\d&amp;#43;))\s&amp;#43;(?&amp;lt;hour&amp;gt;(\d{2})):(?&amp;lt;min&amp;gt;(\d{2})):(?&amp;lt;sec&amp;gt;(\d{2}))\s&amp;#43;[-]\d&amp;#43;\s&amp;#43;&amp;quot;&lt;/span&gt;;
            Match match = Regex.Match(date, pattern);
            &lt;span&gt;if&lt;/span&gt; (match.Success)
            {
                &lt;span&gt;int&lt;/span&gt; day = Int32.Parse(match.Groups[&lt;span&gt;&amp;quot;day&amp;quot;&lt;/span&gt;].Value);
                &lt;span&gt;int&lt;/span&gt; month = GetMonth(match.Groups[&lt;span&gt;&amp;quot;month&amp;quot;&lt;/span&gt;].Value);
                &lt;span&gt;if&lt;/span&gt; (month == 0)
                    &lt;span&gt;throw&lt;/span&gt; &lt;span&gt;new&lt;/span&gt; Exception(&lt;span&gt;&amp;quot;Could not identify month in date string&amp;quot;&lt;/span&gt;);

                &lt;span&gt;int&lt;/span&gt; year = Int32.Parse(match.Groups[&lt;span&gt;&amp;quot;year&amp;quot;&lt;/span&gt;].Value);
                &lt;span&gt;int&lt;/span&gt; hour = Int32.Parse(match.Groups[&lt;span&gt;&amp;quot;hour&amp;quot;&lt;/span&gt;].Value);
                &lt;span&gt;int&lt;/span&gt; min = Int32.Parse(match.Groups[&lt;span&gt;&amp;quot;min&amp;quot;&lt;/span&gt;].Value);
                &lt;span&gt;int&lt;/span&gt; sec = Int32.Parse(match.Groups[&lt;span&gt;&amp;quot;sec&amp;quot;&lt;/span&gt;].Value);
                DateTime d = &lt;span&gt;new&lt;/span&gt; DateTime(year, month, day, hour, min, sec);
                &lt;span&gt;return&lt;/span&gt; d;

            }

            DateTime d2 = &lt;span&gt;new&lt;/span&gt; DateTime();
            DateTime.TryParse(date, &lt;span&gt;out&lt;/span&gt; d2);

            &lt;span&gt;return&lt;/span&gt; d2;
        }&lt;/pre&gt;
&lt;/div&gt;</description><author>pettijohn</author><pubDate>Mon, 27 Dec 2010 18:31:53 GMT</pubDate><guid isPermaLink="false">New Post: Time Zone / Offset 20101227063153P</guid></item><item><title>New Post: Problems with Attachments</title><link>http://interimap.codeplex.com/Thread/View.aspx?ThreadId=238238</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have been testing InterIMAP for a few moments and I am very impressed. I have tested some other libraries as well and think that this is the most intelligent. It works very well with a sensible class structure and is not following the technical side.&lt;/p&gt;
&lt;p&gt;But I ran into some problems with attachments. At first, they were not recognized at all, until I have made a small modification. But it still does not find the correct filename. I am not that good with the library that I would have found the problem already,
 but I would create a mail account to test with if required. My server uses dovecot, if that is of any interest.&lt;/p&gt;
&lt;p&gt;kind regards,&lt;br&gt;
Philip&lt;/p&gt;
&lt;/div&gt;</description><author>pdfforge</author><pubDate>Mon, 13 Dec 2010 23:06:40 GMT</pubDate><guid isPermaLink="false">New Post: Problems with Attachments 20101213110640P</guid></item><item><title>New Post: How to get Unseen MessageListRequest?</title><link>http://interimap.codeplex.com/Thread/View.aspx?ThreadId=204165</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I would like to add that I was also having problems with the QuickSearchNew because I believed (as the comment in the code states) that it would return unseen messages. This however is not the truth. In order to fix this I changed IMAPFolder.cs (around like
 840) to have the following:&lt;/p&gt;
&lt;p&gt;if (query.New)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;searchTerms.Add(&amp;quot;UNSEEN&amp;quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;That fixed my problem and all unread emails are now being searched for correctly. However this might lead to other problems where you did in fact want to search for &amp;quot;NEW&amp;quot;. I am not familiar with all the IMAP4 protocols, so I cannot verify that the &amp;quot;NEW&amp;quot;
 is useful in any case or not.&lt;/p&gt;
&lt;/div&gt;</description><author>ostlerc</author><pubDate>Mon, 29 Nov 2010 21:54:01 GMT</pubDate><guid isPermaLink="false">New Post: How to get Unseen MessageListRequest? 20101129095401P</guid></item><item><title>New Post: Running the basic example code</title><link>http://interimap.codeplex.com/Thread/View.aspx?ThreadId=228380</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;IMAPAsyncClient belongs here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;InterIMAP.Asynchronous.Client.IMAPAsyncClient&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not Here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;InterIMAP.IMAPAsyncClient&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, you need to replace...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;IMAPAsyncClient client = new IMAPAsyncClient(config, 5);&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;with something like this...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;InterIMAP.Asynchronous.Client.IMAPAsyncClient = new InterIMAP.Asynchronous.Client.IMAPAsyncClient(config, 5);&amp;nbsp; &lt;br&gt;&lt;/pre&gt;
&lt;p&gt;Or, declare...&lt;/p&gt;
&lt;pre&gt;using InterIMAP.Asynchronous.Client;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>gws</author><pubDate>Fri, 26 Nov 2010 16:22:37 GMT</pubDate><guid isPermaLink="false">New Post: Running the basic example code 20101126042237P</guid></item><item><title>New Post: SSLStream with Client Certificate</title><link>http://interimap.codeplex.com/Thread/View.aspx?ThreadId=234511</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;In the IMAPBase.cs file you find where the SSL connection is being created for IMAP - this is in the Connect function. &amp;nbsp;It looks something like this&lt;/p&gt;
&lt;p&gt;m_SSLStream = new SslStream(m_oImapServ.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null);&lt;/p&gt;
&lt;p&gt;The last argument to this is the LocalCertificateSelectionCallback. If someone were to want to (and I do) use a client certificate there is no possible way as of yet it seems. Is there a future plan to allow this? I currently am working on changing this
 but I would prefer to have the changes done by the makers of InterIMAP so I could make it easier to update when new releases are done.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Has anyone already made a version where this feature is implemented?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Chad Ostler&lt;/p&gt;
&lt;/div&gt;</description><author>ostlerc</author><pubDate>Fri, 12 Nov 2010 20:53:46 GMT</pubDate><guid isPermaLink="false">New Post: SSLStream with Client Certificate 20101112085346P</guid></item></channel></rss>