I have this code for opening a connection to a pop3 server (in my case, hotmail
As you notice, first time I create a pop3 instance with the unlock code, login and get total emails number from the server.
Well, all works nice but after a few minutes of inactivity, if I try to do another operation (for instance do a filter)
and of couse, the noop is false and session is reinitialized. But from here on, each operation returns a NULL bundle. And any other operation I do from here on, when I check if the session is alive it ALWAYS goes and reinit it...
Can you please let me know where I am wrong? If after a few minutes of inactivity the session is re-init, why from there on it always try to reinit it for any operation?
UPDATE: When trying to send first noop after a period of idle (few minutes), I notice this in LastErrorText:
So what I understand from here is that I should not call NOOP when the user is coming back from IDLE but send NOOP continuously (for instance one noop per x seconds). But my question is not: HOW I do this? I cannot use Quartz because I keep current user connection in session which is not available in a quartz job... Is any way Chilkat thought of this issue's workaround?
asked Aug 18 '12 at 05:07
Please post the full contents of the LastErrorText captured after calling mailman.Pop3BeginSession (from the code snippet that is within the "if (!noop)" statement. Also, make sure to check the success/failure return value of Pop3BeginSession. You shouldn't assume that it will succeed because anything involving network communications shouldn't assume success.
answered Aug 18 '12 at 08:43