tags:

views:

1369

answers:

2

I am using an open source client to programmatically process incoming emails (on Windows 2003). The only way to prevent receiving previously read emails is to delete them from the server. This is less than ideal. As far as I know, there is no command in Pop3 to set emails as being read. So how do you go about this?

+7  A: 

if you do not want to delete, you have to keep track of all the emails already downloaded and do not RETR them again. afaik there is no "mark as read"-like functionality within the standard POP3 protocol (at least not in the rfc)

Joachim Kerschbaumer
POP3 allows downloading incoming mails to a client, nothing other than "give me email" happens at the server :) So you're bang on. +1.
OJ
+8  A: 

It's the responsibility of the POP3 client to check for this. The most reliable method is to use the UIDL POP3 command to get a unique message ID, and keep track of these on the client side.

xahtep