[PATCH 3/5] Re: Don't pass a list to ui.copyingmessage()

Nicolas Sebrecht nicolas.s-dev at laposte.net
Sun Aug 14 16:34:45 BST 2011


On Sun, Aug 14, 2011 at 10:42:19AM +0200, Sebastian Spaeth wrote:
> We only copy to a single folder anyway, so clean up the code to only
> pass in a single folder.

This patch introduce a bug for TTYUI.  I wonder if other UI are touched.
Sorry, to not dig into it further for now.

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/offlineimap/threadutil.py", line 140, in run
    Thread.run(self)
  File "/usr/lib64/python2.7/threading.py", line 483, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/offlineimap/folder/Base.py", line 245, in copymessageto
    self.ui.copyingmessage(uid, self, dstfolder)
  File "/usr/lib64/python2.7/site-packages/offlineimap/ui/UIBase.py", line 292, in copyingmessage
    destfolder.getnicename(), destfolder))
AttributeError: 'MaildirFolder' object has no attribute 'getnicename'


Last 1 debug messages logged for Copy message 291618 from INBOX prior to exception:
thread: Register new thread 'Copy message 291618 from INBOX' (account 'dev')
Folder sync [dev.gmx]:
 WARNING: UID validity problem for folder INBOX (repo Remotedev.gmx) (saved 1241394545; got 1288252121); skipping it
Exception in thread Account sync dev.gmx (most likely raised during interpreter shutdown):Exception in thread imap.laposte.net reader (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
  File "/usr/lib64/python2.7/threading.py", line 483, in run
 Exception in thread imap.laposte.net reader (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
  File "/usr/lib64/python2.7/threading.py", line 483, in run
  File "/usr/lib64/python2.7/site-packages/offlineimap/imaplib2.py", line 1736, in _reader
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'exc_info'

  File "/usr/lib64/python2.7/site-packages/offlineimap/imaplib2.py", line 1736, in _reader
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'exc_info'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
  File "/usr/lib64/python2.7/site-packages/offlineimap/threadutil.py", line 226, in run
  File "/usr/lib64/python2.7/site-packages/offlineimap/threadutil.py", line 162, in run
<type 'exceptions.TypeError'>: 'NoneType' object is not callable


-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list