SOURCE CODE IS HERE: http://pastebin.com/zPXLgV5k
(copy and paste into a text editor and save as "whatever-you-want.py" to run it yourself!)
here's what's happening:
first attempt - using badly formatted email address
second attempt - using wrong password
third attempt - using correct login credentials
successfully authenticates and logs onto gmail IMAP server, fetches all contents from the inbox, and writes the raw data of each message to a text file and saves it in a subdirectory.
it also checks the directory for existing files, and if they exist, to skip.
once all the emails are successfully written and saved to file, it logs off the server and exits the program.
more functionality is coming. this is version 1.2!
In questa pagina del sito puoi guardare il video online demo: vvn's first python script! gmail IMAP integration della durata di ore minuti seconda in buona qualità , che l'utente ha caricato vvn 27 dicembre 2013, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 667 volte e gli è piaciuto 3 spettatori. Buona visione!