{"action":"created","issue":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/502","repository_url":"https://api.github.com/repos/OfflineIMAP/offlineimap","labels_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/502/comments","events_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/502/events","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/502","id":268686026,"number":502,"title":"Error if a folder/label is missing","user":{"login":"pprw","id":5262986,"avatar_url":"https://avatars1.githubusercontent.com/u/5262986?v=4","gravatar_id":"","url":"https://api.github.com/users/pprw","html_url":"https://github.com/pprw","followers_url":"https://api.github.com/users/pprw/followers","following_url":"https://api.github.com/users/pprw/following{/other_user}","gists_url":"https://api.github.com/users/pprw/gists{/gist_id}","starred_url":"https://api.github.com/users/pprw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pprw/subscriptions","organizations_url":"https://api.github.com/users/pprw/orgs","repos_url":"https://api.github.com/users/pprw/repos","events_url":"https://api.github.com/users/pprw/events{/privacy}","received_events_url":"https://api.github.com/users/pprw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-10-26T09:20:03Z","updated_at":"2017-10-27T16:59:57Z","closed_at":null,"author_association":"NONE","body":"bug: **Offlineimap get stuck if I delete a folder/label from the gmail interface.**\r\n\r\n#### General informations\r\n\r\n- system/distribution (with version):  Debian sid up-to-date\r\n- offlineimap version (`offlineimap -V`):  offlineimap v7.1.3, imaplib2 v2.57 (system), Python v2.7.14, OpenSSL 1.1.0f  25 May 2017\r\n- Python version: see below\r\n- server name or domain: Gmail\r\n- CLI options:  none\r\n\r\n#### Configuration file offlineimaprc\r\n\r\n```\r\n[general]\r\nui = ttyui\r\naccounts = Petur\r\nmaxsyncaccounts = 1\r\n\r\n[mbnames]\r\nenabled = yes\r\nfilename = ~/.mutt/mailboxes\r\nheader = \"mailboxes \"\r\nperitem = \"+%(accountname)s/%(foldername)s\"\r\nsep = \" \"\r\nfooter = \"\\n\"\r\n\r\n[Account Petur]\r\nlocalrepository = Petur-Local\r\nremoterepository = Petur-Remote\r\n\r\nsynclabels = yes\r\nautorefresh = 0.5\r\nquick = 10\r\n\r\n\r\n[Repository Petur-Local]\r\ntype = GmailMaildir\r\nlocalfolders = ~/Mail/Petur\r\n\r\n\r\n[Repository Petur-Remote]\r\ntype = Gmail\r\nremoteuser = my_email\r\nremotepass = secret\r\nmaxconnections = 3\r\nsslcacertfile = /etc/ssl/certs/ca-certificates.crt\r\n\r\nkeepalive = 60\r\nholdconnectionopen = yes\r\n```\r\n\r\n\r\n#### Logs, error\r\n\r\n```\r\n$ offlineimap\r\nOfflineIMAP 7.1.3\r\n  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)\r\nimaplib2 v2.57 (system), Python v2.7.14, OpenSSL 1.1.0f  25 May 2017\r\nAccount sync Petur:\r\n *** Processing account Petur\r\n Establishing connection to imap.gmail.com:993 (Petur-Remote)\r\n ERROR: While attempting to sync account 'Petur'\r\n  getfolder() got an unexpected keyword argument 'decode'\r\n *** Finished account 'Petur' in 0:01\r\n\r\n```\r\n\r\n#### Steps to reproduce the error\r\n\r\n- Launch offlineimap once to create folders and download emails.\r\n- Delete one folder/label from Gmail interface\r\n- start again offlineimap which will generate the previously pasted error.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/comments/340027405","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/502#issuecomment-340027405","issue_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/502","id":340027405,"user":{"login":"pprw","id":5262986,"avatar_url":"https://avatars1.githubusercontent.com/u/5262986?v=4","gravatar_id":"","url":"https://api.github.com/users/pprw","html_url":"https://github.com/pprw","followers_url":"https://api.github.com/users/pprw/followers","following_url":"https://api.github.com/users/pprw/following{/other_user}","gists_url":"https://api.github.com/users/pprw/gists{/gist_id}","starred_url":"https://api.github.com/users/pprw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pprw/subscriptions","organizations_url":"https://api.github.com/users/pprw/orgs","repos_url":"https://api.github.com/users/pprw/repos","events_url":"https://api.github.com/users/pprw/events{/privacy}","received_events_url":"https://api.github.com/users/pprw/received_events","type":"User","site_admin":false},"created_at":"2017-10-27T16:59:57Z","updated_at":"2017-10-27T16:59:57Z","author_association":"NONE","body":"It is totally possible I missed errors. After I applied the first patch, emails appears in mutt (offlineimap was in automatic mode). I assumed the problem was fixed but didn't look for errors. It is also possible the emails were downloaded for another reason (I was heavily working on optimizing  my mails, making a lot of changes in folders in particular). Sorry for that."}}
{"actor":{"display_login":"pprw"}}