When "offline syncing" my IMAP mailbox with ~4000 mails in ~60 folders, I get this crash after completing synchronization of some amount of folders: Thread 'Account sync tichodaria' terminated with exception: Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py", line 153, in run Thread.run(self) File "/usr/lib/python2.3/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib/python2.3/site-packages/offlineimap/accounts.py", line 113, in syncrunner self.sync() File "/usr/lib/python2.3/site-packages/offlineimap/accounts.py", line 133, in sync remoterepos.syncfoldersto(localrepos) File "/usr/lib/python2.3/site-packages/offlineimap/repository/Base.py", line 105, in syncfoldersto destfolders = dest.getfolders() File "/usr/lib/python2.3/site-packages/offlineimap/repository/Maildir.py", line 144, in getfolders self.folders = self._getfolders_scandir(self.root) File "/usr/lib/python2.3/site-packages/offlineimap/repository/Maildir.py", line 109, in _getfolders_scandir for dirname in os.listdir(toppath) + ['.']: OSError: [Errno 2] No such file or directory: '/home/ticho/OfflineImapMaildir' Last 50 debug messages logged for Account sync tichodaria prior to exception: imap: imapsplit() returning: ['(\\HasNoChildren)', '"."', '"Cron.daria"'] imap: imapsplit() called with input: \HasNoChildren imap: imapsplit() returning: ['\\HasNoChildren'] imap: dequote() called with input: "Cron.daria" imap: dequote() returning: Cron.daria imap: dequote() called with input: Cron.daria imap: imapsplit() called with input: (\HasNoChildren) "." "MISC.TB" imap: imapsplit() returning: ['(\\HasNoChildren)', '"."', '"MISC.TB"'] imap: imapsplit() called with input: \HasNoChildren imap: imapsplit() returning: ['\\HasNoChildren'] imap: dequote() called with input: "MISC.TB" imap: dequote() returning: MISC.TB imap: dequote() called with input: MISC.TB imap: imapsplit() called with input: (\HasNoChildren) "." "ADMIN.aide" imap: imapsplit() returning: ['(\\HasNoChildren)', '"."', '"ADMIN.aide"'] imap: imapsplit() called with input: \HasNoChildren imap: imapsplit() returning: ['\\HasNoChildren'] imap: dequote() called with input: "ADMIN.aide" imap: dequote() returning: ADMIN.aide imap: dequote() called with input: ADMIN.aide imap: imapsplit() called with input: (\HasNoChildren) "." "ADMIN.virusreport" imap: imapsplit() returning: ['(\\HasNoChildren)', '"."', '"ADMIN.virusreport"'] imap: imapsplit() called with input: \HasNoChildren imap: imapsplit() returning: ['\\HasNoChildren'] imap: dequote() called with input: "ADMIN.virusreport" imap: dequote() returning: ADMIN.virusreport imap: dequote() called with input: ADMIN.virusreport imap: imapsplit() called with input: (\HasNoChildren) "." "ADMIN.kerberos" imap: imapsplit() returning: ['(\\HasNoChildren)', '"."', '"ADMIN.kerberos"'] imap: imapsplit() called with input: \HasNoChildren imap: imapsplit() returning: ['\\HasNoChildren'] imap: dequote() called with input: "ADMIN.kerberos" imap: dequote() returning: ADMIN.kerberos imap: dequote() called with input: ADMIN.kerberos imap: imapsplit() called with input: (\HasNoChildren) "." "ADMIN.nagios" imap: imapsplit() returning: ['(\\HasNoChildren)', '"."', '"ADMIN.nagios"'] imap: imapsplit() called with input: \HasNoChildren imap: imapsplit() returning: ['\\HasNoChildren'] imap: dequote() called with input: "ADMIN.nagios" imap: dequote() returning: ADMIN.nagios imap: dequote() called with input: ADMIN.nagios imap: imapsplit() called with input: (\HasNoChildren) "." "ynet_sk.porty" imap: imapsplit() returning: ['(\\HasNoChildren)', '"."', '"ynet_sk.porty"'] imap: imapsplit() called with input: \HasNoChildren imap: imapsplit() returning: ['\\HasNoChildren'] imap: dequote() called with input: "ynet_sk.porty" imap: dequote() returning: ynet_sk.porty imap: dequote() called with input: ynet_sk.porty maildir: _GETFOLDERS_SCANDIR STARTING. root = /home/ticho/OfflineImapMaildir, extension = None maildir: toppath = /home/ticho/OfflineImapMaildir (/home/ticho/OfflineImapMaildir *does* exist, and my .offlineimaprc is an exact copy of the sample minimal config file installed into /usr/share/doc)
The re: comment #1, "exact copy" of course implies "with adjusted values for my settings (paths, server hostname/user). Just FYI. :)
offlineimap-4.0.8 works nicely on the same account, with the same .offlineimaprc
Sorry, this was caused by offlineimap's annoying curses screen cleanup after completion. Previous crash message (target dir not created) was staring at me when it completed its job.