Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: IMAP idle throws exception Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jesch20
Newbie
Newbie


Joined: 14 August 2009
Location: Germany
Online Status: Offline
Posts: 2
Posted: 10 January 2012 at 2:51am | IP Logged Quote jesch20

Hello,

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 View jesch20's Profile Search for other posts by jesch20
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 January 2012 at 4:03am | IP Logged Quote Igor

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.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
jesch20
Newbie
Newbie


Joined: 14 August 2009
Location: Germany
Online Status: Offline
Posts: 2
Posted: 10 January 2012 at 5:22am | IP Logged Quote jesch20

Thanks for your prompt response.

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 View jesch20's Profile Search for other posts by jesch20
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 January 2012 at 5:39am | IP Logged Quote Igor

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.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 11 January 2012 at 3:35am | IP Logged Quote Igor

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.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide