Matt Warren

Tag: gmail

  • Python Imap Gmail

    Connecting to a Google Gmail account is easy with Python using the built in imaplib library. It’s possible to download, read, mark and delete messages in your gmail account by scripting it. Here’s a very simple script that prints out the latest email received: #!/usr/bin/env python import imaplib M=imaplib.IMAP4_SSL(‘imap.gmail.com’, 993) M.login(‘myemailaddress@gmail.com’,’password’) status, count = M.select(‘Inbox’)…