abjennings / gmail-backup Goto Github PK
View Code? Open in Web Editor NEWA Python script to download all your mail from Gmail to your local hard drive.
License: MIT License
A Python script to download all your mail from Gmail to your local hard drive.
License: MIT License
Perhaps you can also store the labels, using the X-GM-LABELS extension as a json for each message?
Otherwise, my understanding is that the labels are not part of the message and hence are not actually stored.
Traceback (most recent call last):
File "dobackup.py", line 77, in <module>
do_backup()
File "dobackup.py", line 46, in do_backup
svr.login(user, pwd)
File "/2.7/lib/python2.7/imaplib.py", line 520, in login
raise self.error(dat[-1])
imaplib.error: [ALERT] Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)
i was trying to avoid other more complex libs but this script didn't work for me so in case you keep track of bugs:
enivanrodrig@enivanrodrig:~/Desktop/gmail-backup$ python dobackup.py
Gmail address: [email protected]
Gmail password:
Traceback (most recent call last):
File "dobackup.py", line 76, in <module>
do_backup()
File "dobackup.py", line 49, in do_backup
count = int(countstr)
ValueError: invalid literal for int() with base 10: '[NONEXISTENT] Unknown Mailbox: [Gmail]/All Mail (Failure)'
Hello, I would like to know if gmail-backup supports messages written in foreign languages (using Unicode, for example.) I know that BaGoMa (which is a similar service) did clearly mention it supports all languages.
Thanks for your help!
When I try to backup my gmail it worked fine for about 2000 some messages then it caught an error and I can pull any more emails.
Traceback (most recent call last):
File "dobackup.py", line 60, in
downloadMessage(i, uid+'.eml')
File "dobackup.py", line 21, in downloadMessage
utc_dt = datetime.datetime(*dt_src[:6])-datetime.timedelta(seconds= dt_src[-1])
TypeError: 'NoneType' object is not subscriptable
if I replace line 21 by setting
ut_dt with a random date, then it works. But I don't know enough about the script to know what is exactly wrong. If you can help that would be great.
What is the license for this repository, please?
Also, I wanted to ask what license the JavaScript code from these pages has:
http://ajennings.net/blog/a-million-digits-of-pi-in-9-lines-of-javascript.html
http://ajennings.net/pi.html
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.