From c28497e537f26fae6d9ade481ff2679ab2422ef6 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sun, 16 Dec 2012 22:31:22 +0000 Subject: [PATCH] Re: gmail importer script --- 06/11d010608a5f472d0bdf40ce363d065fa4788d | 161 ++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 06/11d010608a5f472d0bdf40ce363d065fa4788d diff --git a/06/11d010608a5f472d0bdf40ce363d065fa4788d b/06/11d010608a5f472d0bdf40ce363d065fa4788d new file mode 100644 index 000000000..f2bb094b1 --- /dev/null +++ b/06/11d010608a5f472d0bdf40ce363d065fa4788d @@ -0,0 +1,161 @@ +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 5AB15431FAF + for ; Sun, 16 Dec 2012 14:31:29 -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 A+4uvswrdE+E for ; + Sun, 16 Dec 2012 14:31:28 -0800 (PST) +Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com + [74.125.82.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + AE078431FAE for ; Sun, 16 Dec 2012 14:31:28 -0800 + (PST) +Received: by mail-wg0-f47.google.com with SMTP id dq11so2251476wgb.2 + for ; Sun, 16 Dec 2012 14:31:27 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=content-type:mime-version:content-disposition:to:from:in-reply-to + :cc:references:message-id:user-agent:subject:date; + bh=rRbJ7F6KrvCOmB/pdWMfH4t8Jro/eCGwx/80UPGR3iQ=; + b=u3NhTIhfEm/PDuGK/TYH+Eh5W9BvTltIVq8k15MPNExFZvkOghpD1h3PJfYN8WzS8v + JEWopDhET6b4PHoXf2GKT5AmSfbpOrY15PI6GvLTA1ju4R1eqjMsYIvTKiAOppfjB71O + HoxT3AVcwpBV8Exo6MUAk/ukycuPYA73ks+PqXru5WHpuZ1YZtTPy2qe0IC7VN4D7869 + wOJw1/KiHLHqH2my7uogw0mBlAmeru1OdyKii8PZdILOyTxll6cGtnceq01cqt5nfuFd + nWfsNB9USjiSdYnlW4oC6QgBbFAB4nVdoOu6FS9X6jq+wtHUAy3I2IgaMQAyLRyDeCE/ + DnhQ== +Received: by 10.194.78.207 with SMTP id d15mr859739wjx.52.1355697086226; + Sun, 16 Dec 2012 14:31:26 -0800 (PST) +Received: from localhost (cpc14-sgyl28-2-0-cust332.18-2.cable.virginmedia.com. + [82.39.85.77]) + by mx.google.com with ESMTPS id fv2sm8618629wib.4.2012.12.16.14.31.23 + (version=TLSv1/SSLv3 cipher=OTHER); + Sun, 16 Dec 2012 14:31:24 -0800 (PST) +Content-Type: multipart/signed; protocol="application/pgp-signature"; + micalg="pgp-sha1"; boundary="===============1833363779911103381==" +MIME-Version: 1.0 +Content-Disposition: inline +To: "Jason A. Donenfeld" , +From: Patrick Totzke +In-Reply-To: + +References: + + + <20121213141917.GD3658@tungsten.lan.mitsi.com> + + <20121213152314.GA9714@tungsten.lan.mitsi.com> + + <20121213164837.17456.37373@megatron> + + <20121215104158.18116.1509@brick.lan> + +Message-ID: <20121216223122.12613.32665@brick.lan> +User-Agent: alot/0.3.3+ +Subject: Re: gmail importer script +Date: Sun, 16 Dec 2012 22:31:22 +0000 +Cc: notmuch ML +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: Sun, 16 Dec 2012 22:31:29 -0000 + +--===============1833363779911103381== +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable + +Quoting Jason A. Donenfeld (2012-12-16 20:44:04) +> On Sat, Dec 15, 2012 at 11:41 AM, Patrick Totzke +> wrote: +> = + +> Well, thats not the point.. the script shouldn't die like this. +> I think it's be better if the script caught that exception, deleted t= +he +> file +> and continued.. +> = + +> = + +> Probably, but I suspect it's related to whatever mystery error you ran in= +to +> before with the corruption. +> = + +> Does deleting that file and trying again fix it?=C2=A0 + +I don't know. How would I know which file to remove? +I just removed the newest files in new/cur/tmp +but this doesnt solve the issue. +What would really help here is some more informative error message! + +I tried with the `-d` option but did not see any local path in the output. + +> = + +> Anyway, this is extremely stable for me and a few others at this point. I= +'m +> going to wait for other users to report errors. Alternatively, send me pa= +tches +> if you want things to happen. + +Personally, I don't really care if 'things are happening', as I'm kind of O= +K with my current +offlineimap configuration and would seriously consider switching from OI +only if it meant an improvement in speed or stability. + +I test this code because I believe that the notmuch ecosystem +would benefit from a working solution and that reviews and bug-reports +are important. + +Of course, I don't expect any miracles in terms of speed at this early stag= +e. +But the bug I reported above should be addressed at some point in order not= + to +scare off potential users. + +Have you considered including your code in offlineimap? +I'm asking because OI already solved some of the problems you might face la= +ter on +if you want to continue working on this. + +* multi-threaded downloads +* the ability to read passwords not as plaintext parameter.. + +best, +/p + +--===============1833363779911103381== +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Content-Description: signature +Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.11 (GNU/Linux) + +iEYEABECAAYFAlDOS7oACgkQlDQDZ9fWxarMsACfX/EVgFbyEty3JtK7BDji6oRG +sOQAn0aUMlcf0FIfvAAC0K7PoEJ6yhf6 +=Jhvq +-----END PGP SIGNATURE----- + +--===============1833363779911103381==-- -- 2.26.2