| Author |  | 
      
        | jesch20 Newbie
 
  
 
 Joined: 14 August 2009
 Location: Germany
 Online Status: Offline
 Posts: 2
 | 
          Hello,
           | Posted: 10 January 2012 at 2:51am | IP Logged |   |  
           | 
 |  
 We are getting an error while using IMAP Idle.
 
 After a FETCH-response from the server the idle callback function is called and the Imap object seems to be in an inconsistent state:
 - IsIdle property is true
 - calling the StopIdle method has no effect
 - the MessageStatus event isn't fired
 - calling the EndIdle method produces an ArgumentNullException
 
 The error only occurs in version 6.8 and 7.1. Idle works fine in version 5.8.
 
 Thanks in advance.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Can you please confirm if our IDLE sample available here works fine for you? Just tested it with current version 7.1 of MailBee.NET.dll, worked like a charm for both GMail and our own server.
           | Posted: 10 January 2012 at 4:03am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | jesch20 Newbie
 
  
 
 Joined: 14 August 2009
 Location: Germany
 Online Status: Offline
 Posts: 2
 | 
          Thanks for your prompt response.
           | Posted: 10 January 2012 at 5:22am | IP Logged |   |  
           | 
 |  
 In the original IDLE sample with Mailbee.Net.dll version 5.8.2.191 everything worked fine.
 
 If I change the  Mailbee.Net.dll to version 7.1.2.340 the error occurs.
 The ArgumentNullException is thrown in line 89 of form1.cs(imp.EndIdle()) when I add or remove a flag to a mail in another mailclient. (I use Mozilla Thunderbird 8.0)
 
 It only occurs if the server send a FETCH-response.
 
 Server:
 MS Exchange 2010
 
 Client os:
 Windows 7 64bit
 
 Last entries of log.txt:
 [13:49:20.74] [USER] TIMER started
 [13:49:20.74] [USER] Started idling
 [13:49:20.74] [INFO] Will go idle.
 [13:49:20.74] [SEND] MBN00000004 IDLE\r\n
 [13:49:20.75] [RECV] + IDLE accepted, awaiting DONE command.\r\n [Total 41 bytes received.]
 [13:49:24.99] [RECV] * 471 FETCH (FLAGS (\Seen))\r\n [Total 29 bytes received.]
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Thanks for the update, I was able to replicate this by setting flags for existing message in IMAP account. Lead developer of MailBee.NET Objects is notified of the issue, will keep you posted.
           | Posted: 10 January 2012 at 5:39am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          We've just updated the DLL, the fix should help towards this issue. We'll also update IDLE sample itself shortly, to ensure the latest DLL is used there.
           | Posted: 11 January 2012 at 3:35am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |