How do you 'mark as read' using Pop3?
Asked Answered
J

2

10

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?

Jacie answered 9/12, 2008 at 10:31 Comment(0)
W
21

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.

Whoever answered 9/12, 2008 at 10:37 Comment(0)
S
13

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)

Sikang answered 9/12, 2008 at 10:35 Comment(1)
POP3 allows downloading incoming mails to a client, nothing other than "give me email" happens at the server :) So you're bang on. +1.Kowtow

© 2022 - 2024 — McMap. All rights reserved.