Re: gmail importer script
authorPatrick Totzke <patricktotzke@gmail.com>
Sun, 16 Dec 2012 22:31:22 +0000 (22:31 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:52:27 +0000 (09:52 -0800)
06/11d010608a5f472d0bdf40ce363d065fa4788d [new file with mode: 0644]

diff --git a/06/11d010608a5f472d0bdf40ce363d065fa4788d b/06/11d010608a5f472d0bdf40ce363d065fa4788d
new file mode 100644 (file)
index 0000000..f2bb094
--- /dev/null
@@ -0,0 +1,161 @@
+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 5AB15431FAF\r
+       for <notmuch@notmuchmail.org>; Sun, 16 Dec 2012 14:31:29 -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 A+4uvswrdE+E for <notmuch@notmuchmail.org>;\r
+       Sun, 16 Dec 2012 14:31:28 -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
+ AE078431FAE   for <notmuch@notmuchmail.org>; Sun, 16 Dec 2012 14:31:28 -0800\r
+ (PST)\r
+Received: by mail-wg0-f47.google.com with SMTP id dq11so2251476wgb.2\r
+       for <notmuch@notmuchmail.org>; Sun, 16 Dec 2012 14:31:27 -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=rRbJ7F6KrvCOmB/pdWMfH4t8Jro/eCGwx/80UPGR3iQ=;\r
+       b=u3NhTIhfEm/PDuGK/TYH+Eh5W9BvTltIVq8k15MPNExFZvkOghpD1h3PJfYN8WzS8v\r
+       JEWopDhET6b4PHoXf2GKT5AmSfbpOrY15PI6GvLTA1ju4R1eqjMsYIvTKiAOppfjB71O\r
+       HoxT3AVcwpBV8Exo6MUAk/ukycuPYA73ks+PqXru5WHpuZ1YZtTPy2qe0IC7VN4D7869\r
+       wOJw1/KiHLHqH2my7uogw0mBlAmeru1OdyKii8PZdILOyTxll6cGtnceq01cqt5nfuFd\r
+       nWfsNB9USjiSdYnlW4oC6QgBbFAB4nVdoOu6FS9X6jq+wtHUAy3I2IgaMQAyLRyDeCE/\r
+       DnhQ==\r
+Received: by 10.194.78.207 with SMTP id d15mr859739wjx.52.1355697086226;\r
+       Sun, 16 Dec 2012 14:31:26 -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 fv2sm8618629wib.4.2012.12.16.14.31.23\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 16 Dec 2012 14:31:24 -0800 (PST)\r
+Content-Type: multipart/signed; protocol="application/pgp-signature";\r
+       micalg="pgp-sha1"; boundary="===============1833363779911103381=="\r
+MIME-Version: 1.0\r
+Content-Disposition: inline\r
+To: "Jason A. Donenfeld" <Jason@zx2c4.com>, \r
+From: Patrick Totzke <patricktotzke@gmail.com>\r
+In-Reply-To:\r
+ <CAHmME9o1aXCRNqSNH5bA+1pRKgHuCUMnWz9Hf21W96gU39zKCw@mail.gmail.com>\r
+References:\r
+ <CAHmME9om0twqigr0L2pwXtbj4ceBVVFz0HqxkwFfB-AnusP2VQ@mail.gmail.com>\r
+       <CAHmME9r1JRtcCCLox8oJBRP1ATmOHSAuDvj4+6NZXTD=8ism1Q@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
+Message-ID: <20121216223122.12613.32665@brick.lan>\r
+User-Agent: alot/0.3.3+\r
+Subject: Re: gmail importer script\r
+Date: Sun, 16 Dec 2012 22:31:22 +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: Sun, 16 Dec 2012 22:31:29 -0000\r
+\r
+--===============1833363779911103381==\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Quoting Jason A. Donenfeld (2012-12-16 20:44:04)\r
+> On Sat, Dec 15, 2012 at 11:41 AM, Patrick Totzke <patricktotzke@gmail.com>\r
+> wrote:\r
+> =\r
+\r
+>     Well, thats not the point.. the script shouldn't die like this.\r
+>     I think it's be better if the script caught that exception, deleted t=\r
+he\r
+>     file\r
+>     and continued..\r
+> =\r
+\r
+> =\r
+\r
+> Probably, but I suspect it's related to whatever mystery error you ran in=\r
+to\r
+> before with the corruption.\r
+> =\r
+\r
+> Does deleting that file and trying again fix it?=C2=A0\r
+\r
+I don't know. How would I know which file to remove?\r
+I just removed the newest files in new/cur/tmp\r
+but this doesnt solve the issue.\r
+What would really help here is some more informative error message!\r
+\r
+I tried with the `-d` option but did not see any local path in the output.\r
+\r
+> =\r
+\r
+> Anyway, this is extremely stable for me and a few others at this point. I=\r
+'m\r
+> going to wait for other users to report errors. Alternatively, send me pa=\r
+tches\r
+> if you want things to happen.\r
+\r
+Personally, I don't really care if 'things are happening', as I'm kind of O=\r
+K with my current\r
+offlineimap configuration and would seriously consider switching from OI\r
+only if it meant an improvement in speed or stability.\r
+\r
+I test this code because I believe that the notmuch ecosystem\r
+would benefit from a working solution and that reviews and bug-reports\r
+are important.\r
+\r
+Of course, I don't expect any miracles in terms of speed at this early stag=\r
+e.\r
+But the bug I reported above should be addressed at some point in order not=\r
+ to\r
+scare off potential users.\r
+\r
+Have you considered including your code in offlineimap?\r
+I'm asking because OI already solved some of the problems you might face la=\r
+ter on\r
+if you want to continue working on this.\r
+\r
+* multi-threaded downloads\r
+* the ability to read passwords not as plaintext parameter..\r
+\r
+best,\r
+/p\r
+\r
+--===============1833363779911103381==\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
+iEYEABECAAYFAlDOS7oACgkQlDQDZ9fWxarMsACfX/EVgFbyEty3JtK7BDji6oRG\r
+sOQAn0aUMlcf0FIfvAAC0K7PoEJ6yhf6\r
+=Jhvq\r
+-----END PGP SIGNATURE-----\r
+\r
+--===============1833363779911103381==--\r