pulb/mailnag — Issue #22: mailnag crashed
Author: vanuch
Created: 2011-11-13 12:07:05+00:00
State: open

Time to time I got error:
```python
Traceback (most recent call last):
File "./Mailnag/mailnag.py", line 510, in timeout
self.mail_list = self.mails.get_mail('desc')	# get all mails from all inboxes
File "./Mailnag/mailnag.py", line 216, in get_mail
status, data = srv.search(None, 'UNSEEN')	# ALL or UNSEEN
File "/usr/lib/python2.7/imaplib.py", line 627, in search
typ, dat = self._simple_command(name, *criteria)
File "/usr/lib/python2.7/imaplib.py", line 1070, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.7/imaplib.py", line 825, in _command
', '.join(Commands[name])))
imaplib.error: command SEARCH illegal in state AUTH, only allowed in states SELECTED
```

after this mailnag crashed.
I use Ubuntu 11.10 and mailnag installed from webupd8 repository