poplib's POP3_SSL not downloading latest email

Steve D'Aprano steve+python at pearwood.info
Sat Jul 8 06:08:12 EDT 2017


On Sat, 8 Jul 2017 06:48 pm, Sm Chats wrote:

> I have a small script which checks whether a mail sent by me to myself(i.e
> delivered to myself) has the same body as the sent message. The problem is
> that the sent message (sent by SMTP) isn't received by the POP3_SSL object I'm
> using. It shows mails from more than a month ago. I'm unable to figure out
> what's wrong. Please help me in correcting the code. Thanks in advance. 🙏
> 
> Here's the script:
> https://github.com/schedutron/CPAP/blob/master/Chap3/myMail.py

Are you sure the mail is delivered?

You wait five seconds for the mail to be delivered, but email can take up to 48
hours (by default) before delivery times out. Maybe it hasn't arrived yet.

Or maybe it is being blocked as spam. If you are running this script dozens of
times, Gmail might think you are spamming and block delivery. You should
separate the script which sends a new message from the one that retrieves the
message, so you aren't spamming your account and making Gmail mad.




-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list