Gmail Backup 0.06

After some time of development and testing we release the next version of our software for doing the backups of your GMail accounts.

This version was enhanced with the incremental backup feature. With this feature you can continue your interrupted download of emails. It simply looks into the backup directory and if it finds some emails stored there, there are skipped from subsequent backup.

The output of this version can look like:

Starting backup of account xxxx@gmail.com into /home/xxxx/tmp/bar
Looking for changes between mailbox and backup directory
Skipping 68 messages already in backup directory
Stored 2.9%: xxxx@gmail.com - Re: icassp
...
...

The Linux version now has the SVC library included, so you need only to extract the distribution ZIP file and run gmail-backup.sh.

This version also enables debugging by default, so you can see the full traceback of the errors in the program. It is useful for error reporting. If you discover some errors, feel free to report them in the discussion forum.

Your GMail Backup Team

AttachmentSize
gmail-backup-0.06.zip2.24 MB
gmail-backup-0.06-linux.zip66.53 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I have a problem ;-)

Hi Jan,

I tried your last code, but I have the following problem.


D:\install\gmail-backup-0.06>gmail-backup.exe backup backup XXX@gmail.com psswd --debug
Starting backup of account XXX@gmail.com into backup
Looking for changes between mailbox and backup directory
Traceback (most recent call last):
File "gmail-backup.py", line 686, in
File "svc\scripting\__init__.pyo", line 1072, in run
File "svc\scripting\__init__.pyo", line 347, in run
File "svc\scripting\__init__.pyo", line 345, in run
File "svc\scripting\__init__.pyo", line 1393, in main
File "svc\scripting\__init__.pyo", line 1413, in invokeCommand
File "gmail-backup.py", line 651, in backup
File "gmail-backup.py", line 384, in backup
File "gmail-backup.py", line 215, in iterMails
AttributeError: 'NoneType' object has no attribute 'group'

I use Windows XP. I already downloaded some emails and I wanted to restart the downloading process. There was no any problem with the first try.

Thanks! Filip

Hi Filip

this problem should be solved in the 0.07 release. This problem is caused with the bad processing of messages with missing Message-Id in their header.

Jan

Same problem here

Same problems here.

Starting backup of account yyyy@gmail.com into dir
Traceback (most recent call last):
File "gmail-backup.py", line 686, in
File "svc\scripting\__init__.pyo", line 1072, in run
File "svc\scripting\__init__.pyo", line 347, in run
File "svc\scripting\__init__.pyo", line 345, in run
File "svc\scripting\__init__.pyo", line 1393, in main
File "svc\scripting\__init__.pyo", line 1413, in invokeCommand
File "gmail-backup.py", line 651, in backup
File "gmail-backup.py", line 374, in backup
File "gmail-backup.py", line 194, in connect
File "imaplib.pyo", line 499, in login
File "imaplib.pyo", line 1055, in _simple_command
File "imaplib.pyo", line 885, in _command_complete
File "imaplib.pyo", line 986, in _get_tagged_response
File "imaplib.pyo", line 903, in _get_response
File "imaplib.pyo", line 996, in _get_line
File "imaplib.pyo", line 1162, in readline
socket.sslerror: (8, 'EOF occurred in violation of protocol')

No files were copied.

Hi

It seems that this problem is caused by the different error than the error mentioned above and fixed in version 0.07. From the traceback I am unable to say what kind of error it is.

This error occur in the imaplib which communicates with the IMAP server using the SSL library. From the error message, I can only guess there was something wrong with the SSL layer. Maybe it is caused by your internet connection. Have you tried to execute the command again (after some time)?

Should be fixed

Should be fixed in the release 0.09. Could you try it?

Jan