Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#470174: offlineimap: should not crash on new folders

0 views
Skip to first unread message

Philipp Kern

unread,
Mar 9, 2008, 2:30:18 PM3/9/08
to
Package: offlineimap
Version: 5.99.7

offlineimap crashes for me when it tries to create a new folder (i.e.
when a new folder appears on the IMAP server):

Thread 'Account sync Archive' terminated with exception:
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/offlineimap/threadutil.py", line 153, in run
Thread.run(self)
File "/usr/lib/python2.4/threading.py", line 422, in run
self.__target(*self.__args, **self.__kwargs)
File "/var/lib/python-support/python2.4/offlineimap/accounts.py", line 114, in syncrunner
self.sync()
File "/var/lib/python-support/python2.4/offlineimap/accounts.py", line 148, in sync
remoterepos.syncfoldersto(localrepos, [statusrepos])
File "/var/lib/python-support/python2.4/offlineimap/repository/Base.py", line 157, in syncfoldersto
copyfolder.makefolder(key)
File "/var/lib/python-support/python2.4/offlineimap/repository/LocalStatus.py", line 46, in makefolder
os.unlink(filename)
OSError: [Errno 2] No such file or directory: '/home/pkern/.offlineimap/Account-Archive/LocalStatus/fsmi.skates'
[...]
maildir: makefolder called with arg 'fsmi.skates'
maildir: makefolder: calling makedirs fsmi.skates
maildir: makefolder: creating cur, new, tmp

Funny enough a rerun continues with the next directory, so after one run
per new directory it finally succeeds and begins to sync over the
messages. It is a nuissance though as the directories are automatically
created by scripts on my mailserver.

Out of privacy reasons I don't want to post the full debugging
information. The folder in question is not present in
_GETFOLDERS_SCANDIR whose result is displayed just above the makefolder
stuff.

Kind regards,
Philipp Kern

signature.asc

Philipp Kern

unread,
Mar 9, 2008, 5:30:16 PM3/9/08
to
On Sun, Mar 09, 2008 at 07:15:53PM +0100, Philipp Kern wrote:
> offlineimap crashes for me when it tries to create a new folder (i.e.
> when a new folder appears on the IMAP server):

FWIW I know that the problem did not happen with 5.99.4, but I cannot
tell anything about 5.99.5 and 5.99.6.

Kind regards,
Philipp Kern

signature.asc
0 new messages