[Repository UdS-local]
type = Maildir
localfolders = $XDG_DATA_HOME/mail/UdS
Logs, error
OfflineIMAP 7.0.11
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
*** Processing account UdS
Establishing connection to mail.stud.uni-saarland.de:993 (UdS-remote)
Creating folder Trash[UdS-local]
Creating new Local Status db for UdS-local:Trash
Creating folder Trash[UdS-local]
Creating new Local Status db for UdS-local:Trash
ERROR: getfolder() asked for a nonexisting folder 'Drafts'.
*** Finished account 'UdS' in 0:01
ERROR: Exceptions occurred during the run!
ERROR: getfolder() asked for a nonexisting folder 'Drafts'.
Traceback:
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 278, in syncrunner
self.__sync()
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 372, in __sync
localfolder = self.get_local_folder(remotefolder)
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 307, in get_local_folder
replace(self.remoterepos.getsep(), self.localrepos.getsep()))
File "/usr/lib/python2.7/site-packages/offlineimap/repository/Maildir.py", line 149, in getfolder
"folder '%s'."% foldername, OfflineImapError.ERROR.FOLDER)
It manages to create some of the required directories at first, but then fails. What is interesting however is the fact that "$XDG_DATA_HOME" was passed as-is instead of being expanded.
I know for a fact that $XDG_DATA_HOME is correctly set because i can see it in env and also because offlineimap correctly reads and writes its metadata to $XDG_DATA_HOME/offlineimap
Hence, the only remaining option is that offlineimap does not do environment variable expansion on repository.localfolder. Adding that support should not be too difficult though I guess
General informations
offlineimap -V
): offlineimap v7.0.11, imaplib2 v2.55 (bundled), Python v2.7.12Configuration file offlineimaprc
Logs, error
Running
strace
shows:It manages to create some of the required directories at first, but then fails. What is interesting however is the fact that "$XDG_DATA_HOME" was passed as-is instead of being expanded.
I know for a fact that $XDG_DATA_HOME is correctly set because i can see it in
env
and also because offlineimap correctly reads and writes its metadata to$XDG_DATA_HOME/offlineimap
Hence, the only remaining option is that offlineimap does not do environment variable expansion on repository.localfolder. Adding that support should not be too difficult though I guess