Re: Deleting emails (General questions)
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:
- Deleting emails - Matt, 2006-08-29, 16:17
- Re: Deleting emails - wodSupport, 2006-08-29, 16:23
- Re: Deleting emails - Matt, 2006-08-31, 13:25
- Re: Deleting emails - wodDrazen, 2006-08-31, 14:14
- Re: Deleting emails - Matt, 2006-08-31, 13:25
- Re: Deleting emails - wodSupport, 2006-08-29, 16:23