Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write a unix script that gets notified with IMAP IDLE from Gmail?

I'm looking for a way to get notified in my unix system for new email. I know gmail supports IMAP IDLE, what is the best way to make use of that feature? Any programming language is fine, as long as it is supported in linux/unix.

like image 508
erotsppa Avatar asked Dec 23 '22 09:12

erotsppa


1 Answers

I would suggest python and IMAPClient by Menno Smits.

http://imapclient.readthedocs.org

like image 166
Charlie Wilson Avatar answered Dec 27 '22 06:12

Charlie Wilson