Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

hi everybody all over the world!
I were coding a project which using Imap to get mail from server. When get down it , i see UIDL property but i don't know deeply about it. if any one know this, please help me! thank you so much!
Posted

1 solution

Refer- Unique Identifier (UIDL) in POP3/IMAP4/Exchange Web Service/WebDAV protocol[^]
Quote:
Using Unique Identifier (UIDL)

The mail server assigns an unique identifier for every email in the same account. You can get the UIDL for every email by MailInfo.UIDL property. To avoid to receive the same email twice, the best way is storing the UIDL of email retrieved to a text file or database. Next time before you retrieve the email, compare your local uidl list with remote uidl. If this uidl exists in your local uidl list, then you don't receive it, otherwise you should receive it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900