From 13b258d4f1dc62fb10d3d421b8144a88fc258f9f Mon Sep 17 00:00:00 2001 From: Kushal Kumaran Date: Fri, 7 Dec 2012 09:35:15 +0530 Subject: [PATCH] Re: gmail importer script --- 33/496267c8e0e0d1ced6524c552f290e7fe89cdf | 93 +++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 33/496267c8e0e0d1ced6524c552f290e7fe89cdf diff --git a/33/496267c8e0e0d1ced6524c552f290e7fe89cdf b/33/496267c8e0e0d1ced6524c552f290e7fe89cdf new file mode 100644 index 000000000..68574bced --- /dev/null +++ b/33/496267c8e0e0d1ced6524c552f290e7fe89cdf @@ -0,0 +1,93 @@ +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 192BF431FB6 + for ; Thu, 6 Dec 2012 20:05:26 -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 y1sCjJOmE4Nh for ; + Thu, 6 Dec 2012 20:05:25 -0800 (PST) +Received: from mail-da0-f53.google.com (mail-da0-f53.google.com + [209.85.210.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 941B0431FAE + for ; Thu, 6 Dec 2012 20:05:25 -0800 (PST) +Received: by mail-da0-f53.google.com with SMTP id x6so38767dac.26 + for ; Thu, 06 Dec 2012 20:05:24 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=sender:from:to:subject:in-reply-to:references:user-agent:date + :message-id:mime-version:content-type; + bh=Fm7EeOqC/hhJaGMq/Y+5jiauvEdhxTgHu3U7iuOOnFE=; + b=rK1LqrrNraovoR00kg9zpaL68/0LKU7EskQ6Zkx8COlgaKxuvcUD0xFUGrpbIB51Yu + XFTbZLds1hdFh0UdDeIEJlJ7Kb1+cpd4ht+4F3eOmcsDRFE5tEgtcVsO1xurJpmRVAt5 + jpmtNDWbMwJDSRMdABk/M2bsiCH+gpoBZKA6Kws0Dq924iN+p9ZFyhxzmyhV1aNF1Qgu + AIiCz8l+8rllvEAzWvh+JURmczcBEUhLNDq+S4yo63qqcuVXZbTYoMmSx8LEtu9/jk93 + /Jioeeq26pym6wZLtsoPIkqmGHha8OdKcZrhVSPa9YpF+ZPJLljtcsqW4Uvhurp+DNaq + WKKg== +Received: by 10.66.81.42 with SMTP id w10mr9654558pax.66.1354853124697; + Thu, 06 Dec 2012 20:05:24 -0800 (PST) +Received: from nitrogen ([117.219.2.238]) + by mx.google.com with ESMTPS id rq7sm5908125pbc.69.2012.12.06.20.05.21 + (version=TLSv1/SSLv3 cipher=OTHER); + Thu, 06 Dec 2012 20:05:23 -0800 (PST) +Sender: Kushal Kumaran +Received: by nitrogen (Postfix, from userid 1000) + id 17B811202CB; Fri, 7 Dec 2012 09:35:15 +0530 (IST) +From: Kushal Kumaran +To: notmuch@notmuchmail.org +Subject: Re: gmail importer script +In-Reply-To: + +References: + +User-Agent: Notmuch/0.14+83~gae459a3 (http://notmuchmail.org) Emacs/24.1.1 + (x86_64-pc-linux-gnu) +Date: Fri, 07 Dec 2012 09:35:15 +0530 +Message-ID: <50c16b03.47e2440a.6038.ffffedce@mx.google.com> +MIME-Version: 1.0 +Content-Type: text/plain +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 04:05:26 -0000 + +"Jason A. Donenfeld" writes: + +> 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 +> + +Not specific to notmuch, but not every gmail user has a @gmail.com or +@googlemail.com email address. Google Apps users can have arbitrary +email addresses, and still use gmail's imap and web interface. + +I finished syncing my gmail locally (using offlineimap), and creating +tags by hand not one day ago, or I would certainly have tried out this +script. + +-- +regards, +kushal -- 2.26.2