S
S
s1vemod2021-02-13 17:33:35
Python
s1vemod, 2021-02-13 17:33:35

How to catch new emails in gmail?

Good afternoon. I want to keep track of new and only new messages that come to my mail.

How can this be implemented?

How many read the documentation of different libraries - all you can only get n letters.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2021-02-13
@firedragon

Interrogate the top 10 letters, there, among other things, there is a messageid, here it is and check it is unique

R
rPman, 2021-02-13
@rPman

The imap protocol allows you to monitor messages not by periodic requests, but by direct connection and receiving the appropriate message for each
new message

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question