Author |
|
Guenther Newbie
Joined: 24 March 2009 Location: Austria
Online Status: Offline Posts: 3
|
Posted: 24 March 2009 at 2:35am | IP Logged
|
|
|
Hello,
one quick question:
Is it save for a client to rely on "MailMessage.IndexOnServer" received from the server?
The reason is: I begin downloading the message headers for all emails, trying to figure out which emails actually had been sent to a certain email-address (it's a catch-all email account) and thus have to be downloaded. After that, i start downloading the entire message for this "MailMessage.IndexOnServer" and deleting it afterwards.
Now, could it happen that meanwhile some other client downloaded and deleted the very first message? And wouldn't that mean, that my "IndexOnServer" has changed (say from 8 to 7) therefore?
Or is it guaranteed, that for a single POP3-Session the index never changes?
Thanks in advance!
Guenther
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 24 March 2009 at 4:30am | IP Logged
|
|
|
When you start POP3 session, you get a snapshot of Inbox folder and you work with it during the session, indexes will not change until you disconnect from POP3 server.
With regard to removing messages from within another POP3 session, this depends on particular mail server configuration. Most probably, if the message was deleted in other session, you'll get an exception while trying to access that message.
Regards,
Igor
|
Back to Top |
|
|
Guenther Newbie
Joined: 24 March 2009 Location: Austria
Online Status: Offline Posts: 3
|
Posted: 24 March 2009 at 4:52am | IP Logged
|
|
|
Thanks for your quick answer!
I read in the RFC something about a "transaction mode", but was not sure if this means what i predicted to be.
Thank you again for clearing this up!
By the way: Your POP3-Component really rocks
Regards,
Guenther
|
Back to Top |
|
|