Idle dies with "error: command IDLE illegal in state AUTH"

Bug #870853 reported by phillamg
This bug report is a duplicate of:  Bug #869615: Wrong credentials message. Edit Remove
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gmail Watcher
Triaged
Undecided
Unassigned

Bug Description

Using Gmailwatcher in Oneiric from the Dev PPA and it works as expected on start-up, or when adding a new folder to the watch list (All Mail is part of my watched folders). Having marked a new email as read it never updates the message indicator and if there are no new messages on start-up then new messages don't give alert. As the new GW uses the IDLE command this error seems relevant...!

phill@dreamland:~$ gmailwatcher
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
** Message: console message: undefined @0: Syntax error, unrecognized expression: Mail]

** Message: console message: undefined @0: Syntax error, unrecognized expression: Mail]

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/opt/owaislone/gmailwatcher/lib/gmail_imap.py", line 67, in run
    self.wait_for_server()
  File "/opt/owaislone/gmailwatcher/lib/gmail_imap.py", line 187, in wait_for_server
    callback=_idle_callback
  File "/opt/owaislone/gmailwatcher/lib/imaplib2.py", line 752, in idle
    return self._simple_command(name, **kw)
  File "/opt/owaislone/gmailwatcher/lib/imaplib2.py", line 1487, in _simple_command
    rqb = self._command(name, callback=self._command_completer, *args)
  File "/opt/owaislone/gmailwatcher/lib/imaplib2.py", line 1186, in _command
    % (name, self.state))
error: command IDLE illegal in state AUTH

--Or from adding a new folder to watch whilst already running--

** Message: console message: undefined @0: TypeError: 'undefined' is not an object

** Message: console message: undefined @0: Syntax error, unrecognized expression: Mail]

** Message: console message: undefined @0: TypeError: 'undefined' is not an object

** Message: console message: undefined @0: Syntax error, unrecognized expression: Mail]

** Message: console message: undefined @0: Syntax error, unrecognized expression: Mail]

Exception in thread Thread-8:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/opt/owaislone/gmailwatcher/lib/gmail_imap.py", line 67, in run
    self.wait_for_server()
  File "/opt/owaislone/gmailwatcher/lib/gmail_imap.py", line 187, in wait_for_server
    callback=_idle_callback
  File "/opt/owaislone/gmailwatcher/lib/imaplib2.py", line 752, in idle
    return self._simple_command(name, **kw)
  File "/opt/owaislone/gmailwatcher/lib/imaplib2.py", line 1487, in _simple_command
    rqb = self._command(name, callback=self._command_completer, *args)
  File "/opt/owaislone/gmailwatcher/lib/imaplib2.py", line 1186, in _command
    % (name, self.state))
error: command IDLE illegal in state AUTH

Owais Lone (loneowais)
Changed in gmailwatcher:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.