Question:

Check email when it arrives?

by  |  earlier

0 LIKES UnLike

I want to get the email from my gmail account via IMAP with a python script. I was wondering how I could know that an email arrived. Is there a way to get a notification when an email arrives? Right now I am just polling the mailbox every 5 seconds, which seems like a waste of bandwidth, because I plan to leave the script running for long periods of time. Thanks for any help in advance.

 Tags:

   Report

2 ANSWERS


  1. http://en.wikipedia.org/wiki/IMAP_IDLE


  2. J2EE Tutorials- http://learnj2ee.info/

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.