Re: Deleting emails - WeOnlyDo Discussion board

Re: Deleting emails (General questions)

by wodSupport, Tuesday, August 29, 2006, 16:23 (6664 days ago) @ Matt

Matt,

you should check emails based on UID provided by the server, not the headers itself. That's how we do it in SpamBlocker app. If message UID isn't on your list, it is new message then. When you're done, store current message UIDs locally for next session and that's it. Something like this: [code] For i = 0 To Pop3.Messages.Count - 1
If Pop3.Messages(i).Uid = rec.Fields( UID ) Then
found = True
End If
Next i
[/code]. As for 'what if someone else' question - leave this to POP3 server to take care of. Usually he will not allow two sessions to open same inbox at the same time.

Hope this helps.
Kreso


Complete thread: