Re: gmail importer script

Subject: Re: gmail importer script

Date: Fri, 07 Dec 2012 09:23:05 +0000

To: Rainer M Krug, notmuch@notmuchmail.org

Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org

From: Patrick Totzke


Is this supposed to happen?

---------------------------------------------
Logging in...
Selecting all mail...
Discovering local messages...
Receiving message list...
Traceback (most recent call last):
  File "./gmail-notmuch.py", line 175, in <module>
    main()
  File "./gmail-notmuch.py", line 58, in main
    new_messages = discover_new_messages(imap, old_messages)
  File "./gmail-notmuch.py", line 80, in discover_new_messages
    typ, data = imap.fetch("1:*", "X-GM-MSGID")
  File "/usr/lib/python2.7/imaplib.py", line 443, in fetch
    typ, dat = self._simple_command(name, message_set, message_parts)
  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 FETCH illegal in state AUTH, only allowed in states SELECTED

------------------------------------------------------


In [2]: imaplib.__version__
Out[2]: '2.58'

One thing you also might want to watch out for is
exceptions due to a locked notmuch index.
rock on,
/p

Thread: