Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GMail and POP3 RETR problem - switch to IMAP?

When I'm accessing GMail inbox using POP3 protocol, it seems that after fetching given email using RETR command, after QUIT-ting and reconnecting, previously RETR-ieved email is not listed anymore when calling LIST.

Then, after going to: GMail settings//Forwarding and POP/IMAP and setting "Enable POP for all mail (even mail that's already been downloaded)", on next login all emails are being LIST-ed again, but if I RETR any of them, it again disappears from LIST after re-logging..

I can then go to GMail settings again and repeat the whole process, but it's a show-stopper for me as I'm writing a script that should work without any manual actions.

Am I missing something, or only IMAP can help here?

(EDIT: RFC http://www.ietf.org/rfc/rfc1939.txt doesn't say a word about RETR command deleting messages)

like image 865
Tomasz Zieliński Avatar asked Jan 30 '10 21:01

Tomasz Zieliński


People also ask

Can I use POP3 and IMAP simultaneously?

Answer: A: Depending on the email client you use, it can be done. We have our iPads set up to use IMAP so the emails remain on the server when viewed. When we go to MS Outlook on our Macs, those are set to POP so we can still retrieve them there.

How do I fix POP3 unable to fetch in Gmail?

Go to Settings->Accounts->Check mail from other accounts and fix the account that is failing POP3 fetching (probably an out-of-date password).

Is Gmail POP3 IMAP or HTTP?

What is the Pop Server for Gmail? Gmail, Google's internet-based email service, runs on the Internet Message Access Protocol (IMAP) system. It also offers Post Office Protocol (POP) mail server access.


1 Answers

This is intended behaviour of Gmail. According to this question, "[a]ll messages may be downloaded to another computer once; after downloading mail, it will not download again."

There's also a 'recent mode', in which the last 30 days of mail are fetched, regardless of whether it's been sent to another POP client already.

That said, don't try to fetch all your mail by different computer in a short period of time, as Gmail may block your account for 24 hours.

I strongly suggest using IMAP.

like image 188
Marcel Korpel Avatar answered Oct 08 '22 01:10

Marcel Korpel