On Sat, 08 Jul 2017 20:08:12 +1000, Steve D'Aprano wrote: > 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. > > ð\x9f\x99\x8f > > > > 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 > â\x80\x9cCheer up,â\x80\x9d they said, â\x80\x9cthings could be > worse.â\x80\x9d So I cheered up, and sure > enough, things got worse. >
Thanks, but I can see my sent mails on the Gmail app on my phone. So the emails are indeed getting delivered. The problem is that POP shows me emails from about a month ago, and I've received potentially hundreds of emails after that. So it's a receiving problem. Cheers, Sam
-- https://mail.python.org/mailman/listinfo/python-list