Comment 1 for bug 1029700

Revision history for this message
Anish Shankar (rndanish) wrote :

The following patch can be used as a temporary workaround. However this will break restoring email functionality completely.

=== modified file 'backup_gmail.py'
--- backup_gmail.py 2011-04-14 02:17:02 +0000
+++ backup_gmail.py 2013-04-25 12:29:25 +0000
@@ -149,7 +149,7 @@
    map(lambda x : re.findall('\(\\\\HasNoChildren\) "/" "([^"]+)"', x), labels)))

  def selectMailBox(self, name):
- ret, mail_count = self.gmail.select(name)
+ ret, mail_count = self.gmail.select(name,readonly=true)
   if ret == 'NO':
    raise self.SelectMailBoxError(name, self.fetchLabelNames())
   return mail_count