Re: gmail importer script
authorPatrick Totzke <patricktotzke@gmail.com>
Mon, 17 Dec 2012 08:31:50 +0000 (08:31 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:52:29 +0000 (09:52 -0800)
19/f06da9b77722a6cee4268acaabb0c41fc20a89 [new file with mode: 0644]

diff --git a/19/f06da9b77722a6cee4268acaabb0c41fc20a89 b/19/f06da9b77722a6cee4268acaabb0c41fc20a89
new file mode 100644 (file)
index 0000000..30de6fc
--- /dev/null
@@ -0,0 +1,118 @@
+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 156FE431FAF\r
+       for <notmuch@notmuchmail.org>; Mon, 17 Dec 2012 00:31:57 -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 7-R8tUoHDUZa for <notmuch@notmuchmail.org>;\r
+       Mon, 17 Dec 2012 00:31:56 -0800 (PST)\r
+Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com\r
+ [74.125.82.47])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 82D74431FAE   for <notmuch@notmuchmail.org>; Mon, 17 Dec 2012 00:31:56 -0800\r
+ (PST)\r
+Received: by mail-wg0-f47.google.com with SMTP id dq11so2401808wgb.2\r
+       for <notmuch@notmuchmail.org>; Mon, 17 Dec 2012 00:31:53 -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-disposition:to:from:in-reply-to\r
+       :cc:references:message-id:user-agent:subject:date;\r
+       bh=sptlguQK69ULYxY899gV13G223UMJ/hmtJJFALst2T4=;\r
+       b=qhTgnSryPW8ccLYafkBk2vg+D1c3jBfG1revnlrtGASKsit/OIdZwleSy8OzC3fN5Y\r
+       TqhxXJ2J/Pz2dJ2ics7UbFfOdREbWWhrN7qA/1ixWZkt880wpZZcLSxseUXzLcgXece7\r
+       9hBwJfqjr+wEJT3QezvkJLG4fjCox8hRXuy/RurHKYiV79xf439k35t7t+7eq8HjKEM5\r
+       NkTqLKoJhfH31Zfvo7pl0QwSCO8qJhq7N32FfqCRiHF9tQV42BEAmUV7aA1cXnRCulBC\r
+       LO+i6dUFnvpabVzsVizqS9SYSzqdgSYibD54gjTvti467YyTmJ+TbDZqECPFddbKuWJW\r
+       0s5w==\r
+Received: by 10.180.99.1 with SMTP id em1mr2093126wib.20.1355733113813;\r
+       Mon, 17 Dec 2012 00:31:53 -0800 (PST)\r
+Received: from localhost (cpc14-sgyl28-2-0-cust332.18-2.cable.virginmedia.com.\r
+       [82.39.85.77])\r
+       by mx.google.com with ESMTPS id dm3sm10075014wib.9.2012.12.17.00.31.51\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 17 Dec 2012 00:31:52 -0800 (PST)\r
+Content-Type: multipart/signed; protocol="application/pgp-signature";\r
+       micalg="pgp-sha1"; boundary="===============3152374373133729540=="\r
+MIME-Version: 1.0\r
+Content-Disposition: inline\r
+To: Patrick Totzke <patricktotzke@gmail.com>,\r
+       "Jason A. Donenfeld" <Jason@zx2c4.com>, \r
+From: Patrick Totzke <patricktotzke@gmail.com>\r
+In-Reply-To: <20121216223122.12613.32665@brick.lan>\r
+References:\r
+ <CAHmME9om0twqigr0L2pwXtbj4ceBVVFz0HqxkwFfB-AnusP2VQ@mail.gmail.com>\r
+       <20121213141917.GD3658@tungsten.lan.mitsi.com>\r
+       <CAHmME9op8V+ZJGVwBJPZ653mHYBnMAvxb426LAP-Bu27-rzmYA@mail.gmail.com>\r
+       <20121213152314.GA9714@tungsten.lan.mitsi.com>\r
+       <CAHmME9r8UrzzCGO7KH=HBdpB=usTgX3tzWtgRR4Q8QjdP7oqPA@mail.gmail.com>\r
+       <20121213164837.17456.37373@megatron>\r
+       <CAHmME9rkrHuxurV7_vfZoxggmHcM9Lon5gpG+_i0qzasUh4S9g@mail.gmail.com>\r
+       <20121215104158.18116.1509@brick.lan>\r
+       <CAHmME9o1aXCRNqSNH5bA+1pRKgHuCUMnWz9Hf21W96gU39zKCw@mail.gmail.com>\r
+       <20121216223122.12613.32665@brick.lan>\r
+Message-ID: <20121217083150.377.93452@brick.lan>\r
+User-Agent: alot/0.3.3+\r
+Subject: Re: gmail importer script\r
+Date: Mon, 17 Dec 2012 08:31:50 +0000\r
+Cc: notmuch ML <notmuch@notmuchmail.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: Mon, 17 Dec 2012 08:31:57 -0000\r
+\r
+--===============3152374373133729540==\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+BTW: I removed the whole maildir contents and restarted the downlowd over n=\r
+ight. here's the result:\r
+\r
+---------------------------------------------------------------\r
+Traceback (most recent call last):2|####################                   =\r
+                                       | 26% ETA:  1:37:22   3.11  emails/s\r
+  File "./gmail-notmuch.py", line 253, in <module>\r
+    main()\r
+  File "./gmail-notmuch.py", line 89, in main\r
+    download_new_messages(imap, database, new_messages, destination)\r
+  File "./gmail-notmuch.py", line 210, in download_new_messages\r
+    tag_message(database, dest, labels)\r
+  File "./gmail-notmuch.py", line 168, in tag_message\r
+    raise e\r
+notmuch.errors.FileNotEmailError\r
+-----------------------------------------------------------------------\r
+\r
+/p\r
+\r
+--===============3152374373133729540==\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: 7bit\r
+Content-Description: signature\r
+Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEABECAAYFAlDO2HYACgkQlDQDZ9fWxaprkQCfat0Rr5KrdpoafQzedwp1+uck\r
+1IsAn3Q7DLNAfMkdh6n4spwL1+K84tk0\r
+=0M77\r
+-----END PGP SIGNATURE-----\r
+\r
+--===============3152374373133729540==--\r