From faddb221eaa1802cbc1ed6f5c45122805a25ab32 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 7 Dec 2012 01:24:14 +0100 Subject: [PATCH] gmail importer script --- 69/662098ec42b35a24b3ad6af1ed5a13f97b9d90 | 79 +++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 69/662098ec42b35a24b3ad6af1ed5a13f97b9d90 diff --git a/69/662098ec42b35a24b3ad6af1ed5a13f97b9d90 b/69/662098ec42b35a24b3ad6af1ed5a13f97b9d90 new file mode 100644 index 000000000..3f00858ff --- /dev/null +++ b/69/662098ec42b35a24b3ad6af1ed5a13f97b9d90 @@ -0,0 +1,79 @@ +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 D119E431FB6 + for ; Thu, 6 Dec 2012 16:30:31 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.1 +X-Spam-Level: +X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_NONE=-0.0001] 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 R4LMz-ynTGIu for ; + Thu, 6 Dec 2012 16:30:31 -0800 (PST) +X-Greylist: delayed 373 seconds by postgrey-1.32 at olra; + Thu, 06 Dec 2012 16:30:31 PST +Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) + by olra.theworths.org (Postfix) with ESMTP id 54BD8431FAE + for ; Thu, 6 Dec 2012 16:30:31 -0800 (PST) +Received: from homiemail-a61.g.dreamhost.com (caiajhbdccac.dreamhost.com + [208.97.132.202]) + by hapkido.dreamhost.com (Postfix) with ESMTP id 474BE1B3D2 + for ; Thu, 6 Dec 2012 16:24:16 -0800 (PST) +Received: from homiemail-a61.g.dreamhost.com (localhost [127.0.0.1]) + by homiemail-a61.g.dreamhost.com (Postfix) with ESMTP id 9BF8B578073 + for ; Thu, 6 Dec 2012 16:24:15 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version + :date:message-id:subject:from:to:content-type; s=zx2c4.com; bh=7 + eRZzwbHcLbXofwpL/OrUVIE+3A=; b=Gf2JCcBjCy/elgmneLRXLtRLsFfg7+cK0 + SZHqo5ja2yxeeR60tyiv7W+Ii8UMjqGBhAwouSsHo9W1hOr+2Mw6j+6oE+XdKNWL + 7EM7XU1jbJY9cFJvQKiLvO5PQhj0mzxZrXnJ2WaComk1Et16RswYZkvNK5SFjcmE + N4eIbhuWWE= +Received: from mail-oa0-f53.google.com (mail-oa0-f53.google.com + [209.85.219.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + (Authenticated sender: jason@zx2c4.com) + by homiemail-a61.g.dreamhost.com (Postfix) with ESMTPSA id 83A88578071 + for ; Thu, 6 Dec 2012 16:24:15 -0800 (PST) +Received: by mail-oa0-f53.google.com with SMTP id j6so7422971oag.26 + for ; Thu, 06 Dec 2012 16:24:15 -0800 (PST) +MIME-Version: 1.0 +Received: by 10.60.32.67 with SMTP id g3mr2318840oei.77.1354839854950; Thu, 06 + Dec 2012 16:24:14 -0800 (PST) +Received: by 10.76.33.70 with HTTP; Thu, 6 Dec 2012 16:24:14 -0800 (PST) +Date: Fri, 7 Dec 2012 01:24:14 +0100 +Message-ID: + +Subject: gmail importer script +From: "Jason A. Donenfeld" +To: notmuch@notmuchmail.org +Content-Type: text/plain; charset=ISO-8859-1 +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 00:30:32 -0000 + +Hi folks, + +I wrote a script that imports emails and tags from gmail. It's +resumable and appears to be working reasonably well. I could use some +experienced eyes looking at it, as my first exposure to notmuch was +just a few hours ago. + +http://git.zx2c4.com/gmail-notmuch/tree/gmail-notmuch.py + +Thanks, +Jason -- 2.26.2