Re: gmail importer script
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 8 Dec 2012 13:15:26 +0000 (14:15 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:46 +0000 (09:51 -0800)
a4/cd8a0c520c02de6b2c0e49d3a6df9c539ceb9f [new file with mode: 0644]

diff --git a/a4/cd8a0c520c02de6b2c0e49d3a6df9c539ceb9f b/a4/cd8a0c520c02de6b2c0e49d3a6df9c539ceb9f
new file mode 100644 (file)
index 0000000..76cb83f
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <Jason@zx2c4.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 BD8F7431FB6\r
+       for <notmuch@notmuchmail.org>; Sat,  8 Dec 2012 05:15:28 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001] 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 d6LKGsRVQHyN for <notmuch@notmuchmail.org>;\r
+       Sat,  8 Dec 2012 05:15:28 -0800 (PST)\r
+Received: from homiemail-a6.g.dreamhost.com (caiajhbdcbef.dreamhost.com\r
+       [208.97.132.145])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4BAAE431FAE\r
+       for <notmuch@notmuchmail.org>; Sat,  8 Dec 2012 05:15:28 -0800 (PST)\r
+Received: from homiemail-a6.g.dreamhost.com (localhost [127.0.0.1])\r
+       by homiemail-a6.g.dreamhost.com (Postfix) with ESMTP id 7DAF659806C\r
+       for <notmuch@notmuchmail.org>; Sat,  8 Dec 2012 05:15:27 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version\r
+       :in-reply-to:references:date:message-id:subject:from:to:cc:\r
+       content-type; s=zx2c4.com; bh=wLP4l8oDlowy01q1ULVh2OHlW90=; b=wC\r
+       m4vE1vqi096q3h/nZOi1cxrlVpGl12EHlD1XY7eZdusVItP011tbzwFhjkX7FRPs\r
+       xjX/Z/mNCzP3MLMx5YdHKA3w2lSJWGuYazdB++j+XVrUMQaL0Gpm9rLfaRAloJwv\r
+       qySPDIo5zLBwuIyg6CBiZIFtQCtjhgOSnVJzzNmrI=\r
+Received: from mail-oa0-f53.google.com (mail-oa0-f53.google.com\r
+       [209.85.219.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       (Authenticated sender: jason@zx2c4.com)\r
+       by homiemail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 5D31B598069\r
+       for <notmuch@notmuchmail.org>; Sat,  8 Dec 2012 05:15:27 -0800 (PST)\r
+Received: by mail-oa0-f53.google.com with SMTP id j6so1305652oag.26\r
+       for <notmuch@notmuchmail.org>; Sat, 08 Dec 2012 05:15:26 -0800 (PST)\r
+MIME-Version: 1.0\r
+Received: by 10.60.172.164 with SMTP id bd4mr4234676oec.51.1354972526165; Sat,\r
+       08 Dec 2012 05:15:26 -0800 (PST)\r
+Received: by 10.76.33.70 with HTTP; Sat, 8 Dec 2012 05:15:26 -0800 (PST)\r
+In-Reply-To:\r
+ <CAGhLh6GKRYNxm3=RhZdMwhSc-jDwGgFRrKSQqbagzv=GeH0+Yw@mail.gmail.com>\r
+References:\r
+ <CAHmME9om0twqigr0L2pwXtbj4ceBVVFz0HqxkwFfB-AnusP2VQ@mail.gmail.com>\r
+       <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com>\r
+       <CAHmME9pKBJ1Brad=Z1pErSjGqjsZ8Xn56uM-k-U7WLgwjspN_w@mail.gmail.com>\r
+       <50C1F5C3.6010201@gmail.com>\r
+       <CAHmME9qSS4RRcrFi_ebPB8Qkx8KtoaJCGXdQ-JLoYygJVMVA2Q@mail.gmail.com>\r
+       <CAGhLh6GKRYNxm3=RhZdMwhSc-jDwGgFRrKSQqbagzv=GeH0+Yw@mail.gmail.com>\r
+Date: Sat, 8 Dec 2012 14:15:26 +0100\r
+Message-ID:\r
+ <CAHmME9r-gnWFoC0tdPPDMtVFLKCTEO-FDCStU9cNO_vn6DYv_A@mail.gmail.com>\r
+Subject: Re: gmail importer script\r
+From: "Jason A. Donenfeld" <Jason@zx2c4.com>\r
+To: Rainer@krugs.de\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org,\r
+       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: Sat, 08 Dec 2012 13:15:28 -0000\r
+\r
+> I actually prefer this approach, but I think it would be more useful to\r
+> leave the syncing of the emails to a different program, and then just\r
+> managing the labels / tags with your tool (which is notmuch territory). So\r
+> the workflow would be:\r
+> So, implementing the mail sync in this script would, as I see it, kind of\r
+> reinventing the wheel.\r
+\r
+You're misunderstanding me. Let me make it very clear what the script\r
+does. Actually why don't you just read the source code? Please? Well,\r
+anyway, here:\r
+\r
+- It looks in gmail and asks it which messages gmail has\r
+- It downloads those messages\r
+- It applies gmail's labels to those messages as tags\r
+\r
+The end.\r
+\r
+Along the way it has some smart things to reduce redundant downloads.\r
+\r
+For more information, consult the source code.\r