|
-
April 7th, 1999, 12:54 PM
#1
POP3 Question : How to download Unread messages
Hello everybody,
I am new to Internet programming. Please help me out with this:
I am using POP3 to download e-mail messages from the mail server. The server contains new as well as old (read, but not deleted) messages. My program is required to download only the new messages and then delete them from the server storage. How can my program differentiate between new and old messages? Please help.
Thanks in advance,
- KA
-
April 8th, 1999, 03:13 AM
#2
Re: POP3 Question : How to download Unread messages
You can use the command UIDL for this.
Just UIDL reports a list of all emails on the box with their id. each id is given away just one time. That means your program has to remember all id's of previously downloaded emails and don't need to download them again.
You can also use UIDL<sp><number>
Then u would just receive the special ID of this one message.
I hope this helped u.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|