{"action":"closed","issue":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/417","repository_url":"https://api.github.com/repos/OfflineIMAP/offlineimap","labels_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/417/comments","events_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/417/events","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/417","id":192630464,"number":417,"title":"Need to create imap folder structure manually","user":{"login":"darnir","id":1660085,"avatar_url":"https://avatars.githubusercontent.com/u/1660085?v=3","gravatar_id":"","url":"https://api.github.com/users/darnir","html_url":"https://github.com/darnir","followers_url":"https://api.github.com/users/darnir/followers","following_url":"https://api.github.com/users/darnir/following{/other_user}","gists_url":"https://api.github.com/users/darnir/gists{/gist_id}","starred_url":"https://api.github.com/users/darnir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darnir/subscriptions","organizations_url":"https://api.github.com/users/darnir/orgs","repos_url":"https://api.github.com/users/darnir/repos","events_url":"https://api.github.com/users/darnir/events{/privacy}","received_events_url":"https://api.github.com/users/darnir/received_events","type":"User","site_admin":false},"labels":[{"id":10007140,"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-30T17:35:01Z","updated_at":"2016-11-30T21:41:40Z","closed_at":"2016-11-30T21:41:40Z","body":"#### General informations\r\n\r\n- system/distribution (with version): \r\n- offlineimap version (`offlineimap -V`): \r\n- Python version: \r\n- server name or domain: \r\n- CLI options: \r\n\r\n\r\nI know it used to in the past, but when setting up a new machine with Offlineimap, I have the issue that offlineimap will not create the required directories. If I create the directory structure manually, offlineimap will continue and download the files as required\r\n\r\n#### Logs, error\r\n\r\n```\r\nOfflineIMAP 7.0.11\r\n  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)\r\n*** Processing account darnirmlist\r\nEstablishing connection to imap.gmail.com:993 (darnirmlist-remote)\r\nERROR: getfolder() asked for a nonexisting folder 'Arch Linux'.\r\n*** Finished account 'darnirmlist' in 0:01\r\nERROR: Exceptions occurred during the run!\r\nERROR: getfolder() asked for a nonexisting folder 'Arch Linux'.\r\n\r\nTraceback:\r\n  File \"/usr/lib/python2.7/site-packages/offlineimap/accounts.py\", line 278, in syncrunner\r\n    self.__sync()\r\n  File \"/usr/lib/python2.7/site-packages/offlineimap/accounts.py\", line 372, in __sync\r\n    localfolder = self.get_local_folder(remotefolder)\r\n  File \"/usr/lib/python2.7/site-packages/offlineimap/accounts.py\", line 307, in get_local_folder\r\n    replace(self.remoterepos.getsep(), self.localrepos.getsep()))\r\n  File \"/usr/lib/python2.7/site-packages/offlineimap/repository/Maildir.py\", line 149, in getfolder\r\n    \"folder '%s'.\"% foldername, OfflineImapError.ERROR.FOLDER)\r\n```\r\n\r\nAfter this, I manually create the directory \"Arch Linux\" at the required location using:\r\n```\r\nmkdir ~/.local/var/lib/mail/darnirmlist/Arch\\ Linux/{new,tmp,cur}\r\n```\r\n\r\nThen, offlineimap gives the following error:\r\n\r\n```\r\nOfflineIMAP 7.0.11\r\n  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)\r\n*** Processing account darnirmlist\r\nEstablishing connection to imap.gmail.com:993 (darnirmlist-remote)\r\nCreating new Local Status db for darnirmlist-local:Arch Linux\r\nSyncing Arch Linux: Gmail -> GmailMaildir\r\nCollecting data from messages on Arch Linux\r\nCollecting data from messages on Arch Linux\r\nERROR: getfolder() asked for a nonexisting folder 'Arch Linux.arch-announce'.\r\n*** Finished account 'darnirmlist' in 0:01\r\nERROR: Exceptions occurred during the run!\r\nERROR: getfolder() asked for a nonexisting folder 'Arch Linux.arch-announce'.\r\n\r\nTraceback:\r\n  File \"/usr/lib/python2.7/site-packages/offlineimap/accounts.py\", line 278, in syncrunner\r\n    self.__sync()\r\n  File \"/usr/lib/python2.7/site-packages/offlineimap/accounts.py\", line 372, in __sync\r\n    localfolder = self.get_local_folder(remotefolder)\r\n  File \"/usr/lib/python2.7/site-packages/offlineimap/accounts.py\", line 307, in get_local_folder\r\n    replace(self.remoterepos.getsep(), self.localrepos.getsep()))\r\n  File \"/usr/lib/python2.7/site-packages/offlineimap/repository/Maildir.py\", line 149, in getfolder\r\n    \"folder '%s'.\"% foldername, OfflineImapError.ERROR.FOLDER)\r\n\r\n```\r\n\r\nUpon following all the errors and creating the entire directory structure manually, I can get offlineimap to start synchronizing my mails\r\n\r\n\r\n"}}
{"actor":{"display_login":"nicolas33"}}