Comment 11 for bug 758100

Revision history for this message
Invincicble Mutant (ngkengyap) wrote :

The script isn't work as great as it sounds for me. I hope that it could be patched, i appreciate the developer's effort. Thank you very much. Below is the traceback:

Note: i have find and replace'd the user dir and <email address hidden> for privacy reason. The gui.py was renamed to gmail.backup in my user bin.

[/tmp/gmail] Already exists overwrite? (use -i for incremental backup) [N/y]y

Traceback (most recent call last):
  File "/home/user/bin/backup_gmail.py", line 548, in <module>
    doBackup(options, TerminalProgress())
  File "/home/user/bin/backup_gmail.py", line 518, in doBackup
    backup.backupTo([options.start_date, options.end_date], overwrite, include_labels, exclude_labels)
  File "/home/user/bin/backup_gmail.py", line 348, in backupTo
    self.doBackup(date_range, include_labels, exclude_labels)
  File "/home/user/bin/backup_gmail.py", line 335, in doBackup
    self.fetchAllMail(date_range)
  File "/home/user/bin/backup_gmail.py", line 306, in fetchAllMail
    self.fetchMailByLabel('%s/All Mail' % (self.getGmailPrefix(), ), date_range)
  File "/home/user/bin/backup_gmail.py", line 163, in getGmailPrefix
    raise self.SelectMailBoxError('<All Mail>', labels)
SelectMailBoxError: MailBox [<All Mail>] does not exists.
MailBox List: ['Archive', 'Drafts', 'INBOX', 'Sent', 'Trash', '[Gmail]/Drafts', '[Gmail]/Sent Mail', '[Gmail]/Spam', '[Gmail]/Starred', '<email address hidden>']