spaetz/offlineimap — Issue #11: blinkenlights aborts after first run + few seconds
Author: iosonofabio
Created: 2012-01-07 10:02:51+00:00
State: open

After upgrading to 6.5.0, offlineimap aborts after the first sync in the blinkenlights ui. The log file coped below:

```python
2012-01-07 11:00:38 INFO: OfflineImap 6.5.0 starting...
Python: 2.7.2 Platform: linux2
Args: /usr/bin/offlineimap -l oi.log
2012-01-07 11:00:38 INFO: OfflineIMAP 6.5.0
Licensed under the GNU GPL v2+ (v2 or any later version)
2012-01-07 11:00:38 INFO: *** Processing account fastmail
[...]
2012-01-07 11:00:38 INFO: *** Processing account MPI
[...]
2012-01-07 11:00:41 INFO: *** Finished account 'MPI' in 0:03
2012-01-07 11:00:41 INFO: Next sync in 3:00
[...]
2012-01-07 11:00:46 INFO: *** Finished account 'fastmail' in 0:07
2012-01-07 11:00:46 INFO: Next sync in 3:00
2012-01-07 11:00:51 WARNING: Thread 'Account sync MPI' terminated with exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/offlineimap/threadutil.py", line 155, in run
Thread.run(self)
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 253, in syncrunner
if looping and self.sleeper() >= 2:
File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 155, in sleeper
sleepresult = self.ui.sleep(refreshperiod, self)
File "/usr/lib/python2.7/site-packages/offlineimap/ui/Curses.py", line 507, in sleep
return super(Blinkenlights, self).sleep(sleepsecs, account)
File "/usr/lib/python2.7/site-packages/offlineimap/ui/UIBase.py", line 474, in sleep
abortsleep = self.sleeping(10, sleepsecs)
File "/usr/lib/python2.7/site-packages/offlineimap/ui/Curses.py", line 514, in sleeping
return accframe.sleeping(sleepsecs, remainingsecs)
File "/usr/lib/python2.7/site-packages/offlineimap/ui/Curses.py", line 165, in sleeping
return self.account.abort_signal.is_set()
AttributeError: SyncableAccount instance has no attribute 'abort_signal'

Last 15 debug messages logged for Account sync MPI prior to exception:
maildir: This is maildir folder 'Sent'.
maildir: dirname = INBOX
maildir: This is maildir folder 'INBOX'.
maildir: dirname = phd
maildir: This is maildir folder 'phd'.
maildir: dirname = Drafts
maildir: This is maildir folder 'Drafts'.
maildir: dirname = amici
maildir: This is maildir folder 'amici'.
maildir: dirname = newsletter
maildir: This is maildir folder 'newsletter'.
maildir: dirname = Trash
maildir: This is maildir folder 'Trash'.
maildir: dirname =
maildir: _GETFOLDERS_SCANDIR RETURNING ['mpi', 'Sent_Messages', 'Deleted_Messages', 'personal', 'university', 'Sent', 'INBOX', 'phd', 'Drafts', 'amici', 'newsletter', 'Trash']
2012-01-07 11:00:51 INFO: OfflineIMAP 6.5.0
Licensed under the GNU GPL v2+ (v2 or any later version)
2012-01-07 11:00:51 INFO: ERROR: 'NoneType' object has no attribute 'write'
```