Code Monkey home page Code Monkey logo

gmail-backup's People

Contributors

abjennings avatar itsnauman avatar raphaabreu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gmail-backup's Issues

Labels backup?

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.

No longer supported

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)

Unknown Mailbox: [Gmail]/All Mail

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)'

Question about Foreign Language support

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!

TypeError: 'NoneType' object is not subscriptable

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.