login about faq

Hi guys, here is my question:

I am using the method GetUidls() in C# to retrieve all emails in my gmail account, but this method return the same number UIDLs, even if I recieve a new email it's still returns the same UIDLs.

How can I do to recieve the new UIDLs ??

Thanks !

asked Aug 21 '13 at 12:28

Breno's gravatar image

Breno
1222


When a POP3 client begins a session, it gets a snapshot of the UIDLs in the Inbox. This is defined by the POP3 protocol specification itself. During the session, the UIDL command (sent by the client to the server) will always return the full set of UIDLs that existed in the Inbox at the time the session was begun, even if new emails have arrived since. The only way to see the new UIDLs is to end the session and begin a new one.

Also, many people get confused with GMAIL. They compare what is seen in the GMail interactive web interface vs. what UIDLs actually exist in the POP3 INBOX. See this for more information: http://www.cknotes.com/?p=218 Also see this: http://www.cknotes.com/?p=148

Finally, one can always examine the Pop3SessionLog property after fetching the UIDLs. It will show the UIDL command and the full server response that lists all the UIDLs in the INBOX. This is definitively the correct set of UIDLs -- it is what exists in the INBOX at the start of the session, and there can be no debate about it.

link

answered Aug 22 '13 at 13:55

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×31
×28
×5

Asked: Aug 21 '13 at 12:28

Seen: 1,226 times

Last updated: Aug 22 '13 at 13:55

powered by OSQA