Cron jobs fetching gmail emails every 10 minutes

Hey everyone. I was wondering if it was possible to setup a cron job to fetch emails using the gmail api every 10 minutes? Does anyone have any experiences with it, and if so, what would be the best way to approach something like this? The reason that I’m asking, is because I’m working on making an email client, and I figured prefetching emails like this would initially make it way faster!
2 Replies
Paco
Paco16mo ago
Any particular reason to use the API instead of something like POP3 or IMAP? That way you can support email providers outside of Gmail and they're standard interfaces for email clients
darief
dariefOP16mo ago
Well, correct me if I’m wrong, but IMAP only allows for seeing newly received emails, correct? There is no way to use it to see email history?
Want results from more Discord servers?
Add your server