Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9B958431FB6 for ; Fri, 7 Dec 2012 01:21:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jiYmvRJldAch for ; Fri, 7 Dec 2012 01:21:16 -0800 (PST) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 12EC7431FAE for ; Fri, 7 Dec 2012 01:21:15 -0800 (PST) Received: by mail-wi0-f169.google.com with SMTP id hq12so1205925wib.2 for ; Fri, 07 Dec 2012 01:21:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=ZcEix+csbuf5oRtD+Ls5GqOxzrXogAPiTsiYNlcGtn8=; b=Dy6eCoPpe2OPHJP5pnGW1sXVxgdeXIGU9VyAxncp1bOfZbQA9RIOpi6VHAFCyWBoGS siANHRZTq5a5n/Ff1tzErtH+u9SgVc5zhoHZSrquoCD7pXdfQMEH5kIhUPEex/1cZfhH NdiKHZz1BVzM7XAB0fyu4a3wEGQbiQG7POZsCdRvGnQB8jz59PdrxAu3za/+dnqzx78h 2lU5ymiIu61cKLnIsEPtLACQE3pCFzVHs393MXtNjxbu+ymnDSdF9M1Xf38mkFSstAGb /gMDxwNqlLEbQwpkADSJcn9tjaiU4gVtWGfIkLvIrrLytuANjzlsHGWSYXyUALJb58aN kkww== Received: by 10.216.207.139 with SMTP id n11mr1819926weo.211.1354872074962; Fri, 07 Dec 2012 01:21:14 -0800 (PST) Received: from localhost (dhcp-91-036.inf.ed.ac.uk. [129.215.91.36]) by mx.google.com with ESMTPS id y3sm26403341wix.6.2012.12.07.01.21.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Dec 2012 01:21:13 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Rainer M Krug , notmuch@notmuchmail.org From: Patrick Totzke In-Reply-To: <50C1AEA0.9090508@gmail.com> References: <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com> Message-ID: <20121207092305.4942.42415@megatron> User-Agent: alot/0.3.3+ Subject: Re: gmail importer script Date: Fri, 07 Dec 2012 09:23:05 +0000 Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 09:21:16 -0000 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 main() File "./gmail-notmuch.py", line 58, in main new_messages =3D discover_new_messages(imap, old_messages) File "./gmail-notmuch.py", line 80, in discover_new_messages typ, data =3D imap.fetch("1:*", "X-GM-MSGID") File "/usr/lib/python2.7/imaplib.py", line 443, in fetch typ, dat =3D 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