title: How to retrieve LASTEST emails from a POP3 Server?
body: <p>I was recently working on a project that involving connection to a POP3 Server. I was using this piece of C# from CodeProject(<a href="http://www.codeproject.com/Articles/6062/A-POP3-Client-in-C-NET" rel="nofollow noreferrer">http://www.codeproject.com/Articles/6062/A-POP3-Client-in-C-NET</a>), had complied it into a DLL and was using it in VB.NET.</p>
  
  <p>I'd connected to my Hotmail Account (not many mails) and it seems to work just fine. After that, I connected to my GMail account... I started seeing errors!</p>
  
  <p>POP3 is meant to fetch emails only from the Inbox. Even when I made my own program to cross-check the problem, I saw that when I requested for the number of messages, the GMail POP3 Server returned a value which is about 5 times less than the actual inbox size.</p>
  
  <p><img src="https://i.stack.imgur.com/DS4hG.png" alt=""></p>
  
  <p>255 Emails in my Inbox?? Online it shows me 2,414 emails in my Inbox.
  And secondly, my MAIN QUESTION is that how does one fetch the LATEST email from the POP3 Mailbox. What I've fetched here was an e-mail with ID 1! I want to fetch the top 20 emails (that were most recently delivered to the account)...</p>
  
  <p>Is there any work around for how to fetch the LATEST email from the POP3 Server rather than the oldest emails? I've also tried to connect to the Hotmail POP3 Mail Server. Again a "RETR 1" command fetches me the oldest email and not the latest one! Any known work-around?</p>