Gmailchecker
Up to Scripts
Also the eyes of tux are opened when there are unread emails and closed when there aren't any.
Usage:
python gmailchecker.py login password
Thanks for this script. I was searching for a way to check my Gmail account.
I didn't know there was a python library for gmail.
I'll test it right after work.
Thanks
Works just great ^^
If you want you change change your "while" as :
while True:
folder = ga.getUnreadMessages()
for thread in folder:
for msg in thread:
tts.cmd.speak("Hey ! You've got a new mail from " + msg.author)
tts.cmd.speak("The subject is " + msg.subject)
time.sleep(15)
so that it reads the author and the subject of the email.
Previously enguerran wrote:
Works just great ^^
If you want you change change your "while" as :
while True:
folder = ga.getUnreadMessages()
for thread in folder:
for msg in thread:
tts.cmd.speak("Hey ! You've got a new mail from " + msg.author)
tts.cmd.speak("The subject is " + msg.subject)
time.sleep(15)
so that it reads the author and the subject of the email.
Thank you for your input. It works good. I personally prefer to put the two speak commands in one so he doesn't close his mouth between speaking.
This code however marks the messages in gmail as read, which is not good for me. Is there a simple way to prevent this, like
msg.setRead(false)
after speaking or so? Sorry, but I am not familiar with the python-mail API.
Slightly OT: I would like to learn a bit more about python and its API's. Can any1 suggest a good (online) read? I am not new to programming, so I don't need to learn what an if does

cheers Bastian