Re: gmail importer script
authorPatrick Totzke <patricktotzke@gmail.com>
Fri, 7 Dec 2012 09:23:05 +0000 (09:23 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:41 +0000 (09:51 -0800)
39/1223dc42c933751cafad834eba018dcf0f591f [new file with mode: 0644]

diff --git a/39/1223dc42c933751cafad834eba018dcf0f591f b/39/1223dc42c933751cafad834eba018dcf0f591f
new file mode 100644 (file)
index 0000000..4d175f2
--- /dev/null
@@ -0,0 +1,101 @@
+Return-Path: <patricktotzke@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 9B958431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 01:21:16 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id jiYmvRJldAch for <notmuch@notmuchmail.org>;\r
+       Fri,  7 Dec 2012 01:21:16 -0800 (PST)\r
+Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com\r
+       [209.85.212.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 12EC7431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 01:21:15 -0800 (PST)\r
+Received: by mail-wi0-f169.google.com with SMTP id hq12so1205925wib.2\r
+       for <notmuch@notmuchmail.org>; Fri, 07 Dec 2012 01:21:15 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=content-type:mime-version:content-transfer-encoding:to:from\r
+       :in-reply-to:cc:references:message-id:user-agent:subject:date;\r
+       bh=ZcEix+csbuf5oRtD+Ls5GqOxzrXogAPiTsiYNlcGtn8=;\r
+       b=Dy6eCoPpe2OPHJP5pnGW1sXVxgdeXIGU9VyAxncp1bOfZbQA9RIOpi6VHAFCyWBoGS\r
+       siANHRZTq5a5n/Ff1tzErtH+u9SgVc5zhoHZSrquoCD7pXdfQMEH5kIhUPEex/1cZfhH\r
+       NdiKHZz1BVzM7XAB0fyu4a3wEGQbiQG7POZsCdRvGnQB8jz59PdrxAu3za/+dnqzx78h\r
+       2lU5ymiIu61cKLnIsEPtLACQE3pCFzVHs393MXtNjxbu+ymnDSdF9M1Xf38mkFSstAGb\r
+       /gMDxwNqlLEbQwpkADSJcn9tjaiU4gVtWGfIkLvIrrLytuANjzlsHGWSYXyUALJb58aN\r
+       kkww==\r
+Received: by 10.216.207.139 with SMTP id n11mr1819926weo.211.1354872074962;\r
+       Fri, 07 Dec 2012 01:21:14 -0800 (PST)\r
+Received: from localhost (dhcp-91-036.inf.ed.ac.uk. [129.215.91.36])\r
+       by mx.google.com with ESMTPS id y3sm26403341wix.6.2012.12.07.01.21.11\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 07 Dec 2012 01:21:13 -0800 (PST)\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+To: Rainer M Krug <R.M.Krug@gmail.com>,  notmuch@notmuchmail.org\r
+From: Patrick Totzke <patricktotzke@gmail.com>\r
+In-Reply-To: <50C1AEA0.9090508@gmail.com>\r
+References:\r
+ <CAHmME9om0twqigr0L2pwXtbj4ceBVVFz0HqxkwFfB-AnusP2VQ@mail.gmail.com>\r
+       <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com>\r
+Message-ID: <20121207092305.4942.42415@megatron>\r
+User-Agent: alot/0.3.3+\r
+Subject: Re: gmail importer script\r
+Date: Fri, 07 Dec 2012 09:23:05 +0000\r
+Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 07 Dec 2012 09:21:16 -0000\r
+\r
+Is this supposed to happen?\r
+\r
+---------------------------------------------\r
+Logging in...\r
+Selecting all mail...\r
+Discovering local messages...\r
+Receiving message list...\r
+Traceback (most recent call last):\r
+  File "./gmail-notmuch.py", line 175, in <module>\r
+    main()\r
+  File "./gmail-notmuch.py", line 58, in main\r
+    new_messages =3D discover_new_messages(imap, old_messages)\r
+  File "./gmail-notmuch.py", line 80, in discover_new_messages\r
+    typ, data =3D imap.fetch("1:*", "X-GM-MSGID")\r
+  File "/usr/lib/python2.7/imaplib.py", line 443, in fetch\r
+    typ, dat =3D self._simple_command(name, message_set, message_parts)\r
+  File "/usr/lib/python2.7/imaplib.py", line 1070, in _simple_command\r
+    return self._command_complete(name, self._command(name, *args))\r
+  File "/usr/lib/python2.7/imaplib.py", line 825, in _command\r
+    ', '.join(Commands[name])))\r
+imaplib.error: command FETCH illegal in state AUTH, only allowed in states =\r
+SELECTED\r
+\r
+------------------------------------------------------\r
+\r
+\r
+In [2]: imaplib.__version__\r
+Out[2]: '2.58'\r
+\r
+One thing you also might want to watch out for is\r
+exceptions due to a locked notmuch index.\r
+rock on,\r
+/p\r