Search code examples
c#emailgmailpop3

How can I set my pop to download all mails from last 30 days


I have a C# application using pop this is already working perfectly fine. However, I would like to program it to download all mails sent to me in the last 30 days only and download them even if they have been downloaded before.

Is there a way to set the date when to download from and how can I set pop to download all mails even if they have been downloaded before? I don't want to set this in my Gmail but rather in code.


Solution

  • There perfect Answer!!!!!!

    If you add recent: before your username. E.g [email protected] = recent:[email protected]

    Recent mode fetches the last 30 days of mail, regardless of whether it's been sent to another POP1 client already.

    Can read it right here.

    http://support.google.com/mail/bin/answer.py?hl=en&answer=47948