descriptionnone
repository URLhttps://github.com/hrangan/gmail.py.git
ownerneonsync1@gmail.com
last changeMon, 28 Nov 2011 13:04:21 +0000 (28 08:04 -0500)
last refreshFri, 1 Mar 2019 09:59:28 +0000 (1 10:59 +0100)
content tags
add:
readme
======== gmail.py ======== This script uses Google's atom feed to retrieve unread messages in your gmail account. urllib takes care of the username and password handling, since I figure they'd do a better/safer job of it that I could. **NOTE** Taken from the urllib documentation page, regarding urllib.open(): Warning: When opening HTTPS URLs, it does not attempt to validate the server certificate. Use at your own risk! The last line in gmail.py: print '%s at %s: %s <%s> wrote "%s"' % (sdate, stime, \ k.find(name).text, k.find(email).text, k.find(title).text) is what actually prints the output and can easily be changed with even a rudementary understanding of Python for different formats. If any other information is required from the XML file, the variables defined towards the end with purl.org in their string can be used. Usage ===== Usage: gmail.py [options] [username1] [username2] ... Options: -h, --help show this help message and exit -u USERNAME, --username=USERNAME your gmail username. use this if you also want to specify the password on the command line. otherwise simply pass the usernames as arguments -p PASSWORD, --password=PASSWORD your gmail password -s, --summary prints the summary text that is generally visible in your gmail inbox [default: False] -n PRINTCOUNT print 'n' messages -a, --all prints all messages in your inbox
shortlog
2011-11-28 Harshavardhan... cleaned up how main is calledmaster
2011-11-28 Harshavardhan... dev
2011-11-25 Harshavardhan... compiled gmail.py into a source package
2011-11-24 Harshavardhan... removed the profiler code
2011-11-10 Harshavardhan... moved the cmd line parsing into a function
2011-11-09 Harshavardhan... removed a debugging assert statement
2011-11-09 Harshavardhan... mammoth update, hope nothing's broken
2011-11-08 Harshavardhan... readability changes
2011-11-08 Harshavardhan... made certain functions loosely private (added a _)
2011-11-08 Harshavardhan... bugfixes, prettier output message
2011-11-08 Harshavardhan... reordered the arguments for a neater usage display
2011-11-08 Harshavardhan... added timezone as a command line parameter
2011-11-08 Harshavardhan... added usage instructions
2011-11-08 Harshavardhan... implemented whatever was there, therefore deleting it
2011-11-08 Harshavardhan... refactored the code to use classes, improved command...
2011-11-08 Harshavardhan... fubar
...
heads
12 years ago master