Changing status_backend

Denis Igorevich Lobanov denis.lobanov at
Wed Nov 19 16:13:09 GMT 2014


Apologies for the slightly dirty bug test environment here, I have previously
encountered this issue but never logged or documented anything..

I have changed by status_backed from 'sqlite' to 'plain', and even though I
have deleted the .offlineimap folder, I have found that subsequent runs still
try to access old backend directories after new ones have been generated.

    * created a new local folder 'list-dspam'
    * run sync (offlineimap -u ttyui -a zooei)


 *** Finished account 'zooei' in 0:05
ERROR: Exceptions occurred during the run!
ERROR: ERROR in syncfolder for zooei folder list-dspam: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/offlineimap/", line 399, in syncfolder
  File "/usr/lib/python2.7/site-packages/offlineimap/repository/", line 105, in getfolder
  File "/usr/lib/python2.7/site-packages/offlineimap/repository/", line 68, in import_other_backend
    folderbk = dic['class'](, repobk)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/", line 60, in __init__
    self.connection = sqlite.connect(self.filename, check_same_thread = False)
OperationalError: unable to open database file

  unable to open database file

I put some debug in and found its looking for a file in:
    /home/ ... /offlineimap/Account-zooei/LocalStatus-sqlite/list-dspam

However as I use the 'plain' backend, I have this instead:
    /home/ ... /offlineimap/Account-zooei/LocalStatus/list-dSpam

The capital 'S' in 'list-dSpam' isnt my typo but it doesnt appear right (as I
named the folder with lowercase letters).


More information about the OfflineIMAP-project mailing list