Error when trying to sync flags of locally deleted messages to Gmail folder

David Guyot david.guyot at europecamions-interactive.com
Thu Jan 23 10:53:24 GMT 2014


Hello, there.

I'm trying to delete messages from my mailer daemon Gmail folder, but, wheneveri
I try, OfflineIMAP fails to sync and tells me this :

Deleting 1 messages (48707) in Gmail[[Gmail]/Mailer daemon]
WARNING: ERROR attempting to sync flags for account David:Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 421, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 337, in syncmessagesto_delete
    folder.deletemessages(deletelist)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/IMAP.py", line 594, in deletemessages
    self.deletemessages_noconvert(uidlist)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Gmail.py", line 61, in deletemessages_noconvert
    "Bad IMAPlib result: %s" % result[0]
AssertionError: Bad IMAPlib result: NO

WARNING: ERROR in syncfolder for David folder Mailer daemon: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/offlineimap/accounts.py", line 355, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 421, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 337, in syncmessagesto_delete
    folder.deletemessages(deletelist)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/IMAP.py", line 594, in deletemessages
    self.deletemessages_noconvert(uidlist)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Gmail.py", line 61, in deletemessages_noconvert
    "Bad IMAPlib result: %s" % result[0]
AssertionError: Bad IMAPlib result: NO

At first, I thought that it was because I was trying to purge too much old
messages — about 1,300 messages at once the first time —, but it fails even if
I try to delete a single message.

My .offlineimaprc :
accounts = David
fsync = False

[Account David]
localrepository = Local
remoterepository = Remote
status_backend = sqlite
postsynchook = notmuch new
autorefresh = 1
quick = 30

[Repository Local]
type = Maildir
localfolders = ~/.mail/davidguyot
nametrans = lambda folder: {'Brouillons': '[Gmail]/Brouillons',
                            'Envoyés': '[Gmail]/Messages envoy&AOk-s',
                            'Corbeille': 'Trash',
                            'Modèles': 'Templates',
                            'Autres prestataires': '[Gmail]/Autres prestataires',
                            'Cartes bleues': '[Gmail]/Cartes bleues',
                            'Commandes diverses': '[Gmail]/Commandes diverses',
                            'Commerciaux': '[Gmail]/Commerciaux',
                            'Cron': '[Gmail]/Cron',
                            'Dell': '[Gmail]/Dell',
                            'Gandi': '[Gmail]/Gandi',
                            'LDLC': '[Gmail]/LDLC',
                            'Mailer daemon': '[Gmail]/Mailer daemon',
                            'Newsletters, mailing lists and bug trackers': '[Gmail]/Newsletters, mailing lists and bug trackers',
                            'NordNet': '[Gmail]/NordNet',
                            'Orange': '[Gmail]/Orange',
                            'OVH': '[Gmail]/OVH',
                            'Personnel': '[Gmail]/Personnel',
                            'Root': '[Gmail]/Root',
                            'Spam': '[Gmail]/Spam',
                            'Statistiques': '[Gmail]/Statistiques',
                            'Tickets': '[Gmail]/Tickets'
                            }.get(folder, folder)

[Repository Remote]
maxconnections = 3
type = Gmail
remoteuser = david.guyot at europecamions-interactive.com
remotepass = ***********
realdelete = yes
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
nametrans = lambda folder: {'[Gmail]/Brouillons': 'Brouillons',
                            '[Gmail]/Messages envoy&AOk-s': 'Envoyés',
                            'Trash': 'Corbeille',
                            'Templates': 'Modèles',
                            '[Gmail]/Autres prestataires': 'Autres prestataires',
                            '[Gmail]/Cartes bleues': 'Cartes bleues',
                            '[Gmail]/Commandes diverses': 'Commandes diverses',
                            '[Gmail]/Commerciaux': 'Commerciaux',
                            '[Gmail]/Cron': 'Cron',
                            '[Gmail]/Dell': 'Dell',
                            '[Gmail]/Gandi': 'Gandi',
                            '[Gmail]/LDLC': 'LDLC',
                            '[Gmail]/Mailer daemon': 'Mailer daemon',
                            '[Gmail]/Newsletters, mailing lists and bug trackers': 'Newsletters, mailing lists and bug trackers',
                            '[Gmail]/NordNet': 'NordNet',
                            '[Gmail]/Orange': 'Orange',
                            '[Gmail]/OVH': 'OVH',
                            '[Gmail]/Personnel': 'Personnel',
                            '[Gmail]/Root': 'Root',
                            '[Gmail]/Spam': 'Spam',
                            '[Gmail]/Statistiques': 'Statistiques',
                            '[Gmail]/Tickets': 'Tickets'
                            }.get(folder, folder)


If a do-gooder sees my error or corrects the bug, I would be grateful.

Thank you in advance.

Regards.
-- 
David Guyot
Administrateur système, réseau et télécommunications
Europe Camions Interactive / Stockway
Moulin Collot
F-88500 Ambacourt
Tel: +33 (0)3 29 30 47 85
Fax : +33 (0)3 29 31 31 31
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20140123/aa489820/attachment-0002.sig>


More information about the OfflineIMAP-project mailing list