Re: gmail importer script
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 7 Dec 2012 15:32:41 +0000 (16:32 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:42 +0000 (09:51 -0800)
83/29baa4e213862b6524d42ea3f9c89e35007995 [new file with mode: 0644]

diff --git a/83/29baa4e213862b6524d42ea3f9c89e35007995 b/83/29baa4e213862b6524d42ea3f9c89e35007995
new file mode 100644 (file)
index 0000000..1d7e22b
--- /dev/null
@@ -0,0 +1,147 @@
+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 59B63431FBC\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 07:32:43 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.099\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       HTML_MESSAGE=0.001, 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 0e20GUOcWjPU for <notmuch@notmuchmail.org>;\r
+       Fri,  7 Dec 2012 07:32:42 -0800 (PST)\r
+Received: from homiemail-a5.g.dreamhost.com (caiajhbdcbbj.dreamhost.com\r
+       [208.97.132.119])\r
+       by olra.theworths.org (Postfix) with ESMTP id B5AB5431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 07:32:42 -0800 (PST)\r
+Received: from homiemail-a5.g.dreamhost.com (localhost [127.0.0.1])\r
+       by homiemail-a5.g.dreamhost.com (Postfix) with ESMTP id 45530704076\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 07:32:42 -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=P49L0oabiMKX/EoGvXS6Aumo6zs=; b=IL\r
+       sTYcVUW+6NQ5SP9dEmGedTStzEUO88C8y4/bsFwZucFCdeNp4KVdNkj7VHMtj7jT\r
+       02grd9KGUS3ofD2elj23duRiZZCmReMtuMslRobu4UeHg3zXcsE+9J3/El2b7vKR\r
+       nqE3MQR65h2EFvbs9CHSlMIvBpumsOa+vUMSxJg3E=\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-a5.g.dreamhost.com (Postfix) with ESMTPSA id DEB5C704074\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 07:32:41 -0800 (PST)\r
+Received: by mail-oa0-f53.google.com with SMTP id j6so537694oag.26\r
+       for <notmuch@notmuchmail.org>; Fri, 07 Dec 2012 07:32:41 -0800 (PST)\r
+MIME-Version: 1.0\r
+Received: by 10.182.130.99 with SMTP id od3mr3335786obb.61.1354894361317; Fri,\r
+       07 Dec 2012 07:32:41 -0800 (PST)\r
+Received: by 10.76.33.70 with HTTP; Fri, 7 Dec 2012 07:32:41 -0800 (PST)\r
+In-Reply-To: <50C1F5C3.6010201@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
+Date: Fri, 7 Dec 2012 16:32:41 +0100\r
+Message-ID:\r
+ <CAHmME9qSS4RRcrFi_ebPB8Qkx8KtoaJCGXdQ-JLoYygJVMVA2Q@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: multipart/alternative; boundary=14dae93b61341d515c04d044ede3\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: Fri, 07 Dec 2012 15:32:43 -0000\r
+\r
+--14dae93b61341d515c04d044ede3\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+\r
+On Fri, Dec 7, 2012 at 2:57 PM, Rainer M Krug <r.m.krug@gmail.com> wrote:\r
+>\r
+> >\r
+> >\r
+> > 2) I am downloading with the patched notmuch (to add x-keywords\r
+> containing the labels) only\r
+> > the "All Mail" folder - does your script use this information (if\r
+> present) to tag the emails?\r
+> >\r
+> >\r
+> > What is the patched notmuch? What does that do?\r
+>\r
+> Sorry - should have been "patched offlineimap" (\r
+> https://github.com/aroig/offlineimap\r
+> http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970and\r
+> http://article.gmane.org/gmane.mail.imap.offlineimap.general/5970 )\r
+>\r
+> It is synching the gmail labels into the x-keywords header as a comma\r
+> separated list. These could\r
+> then be used by notmuch to be added to the labels. It also does sync\r
+> changes from the X-Keywords\r
+> to gmail (see\r
+> http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970for details)\r
+\r
+\r
+I see.\r
+\r
+I use the All Mail folder and get the tags using the X-GM-LABELS imap\r
+extension. I don't muck with the mail headers in the process, fortunately.\r
+\r
+--14dae93b61341d515c04d044ede3\r
+Content-Type: text/html; charset=ISO-8859-1\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+<br><br><div class=3D"gmail_quote">On Fri, Dec 7, 2012 at 2:57 PM, Rainer M=\r
+ Krug <span dir=3D"ltr">&lt;<a href=3D"mailto:r.m.krug@gmail.com" target=3D=\r
+"_blank">r.m.krug@gmail.com</a>&gt;</span> wrote:<blockquote class=3D"gmail=\r
+_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=\r
+1ex">\r
+<div class=3D"im">\r
+&gt;<br>\r
+&gt;<br>\r
+&gt; 2) I am downloading with the patched notmuch (to add x-keywords contai=\r
+ning the labels) only<br>\r
+&gt; the &quot;All Mail&quot; folder - does your script use this informatio=\r
+n (if present) to tag the emails?<br>\r
+&gt;<br>\r
+&gt;<br>\r
+&gt; What is the patched notmuch? What does that do?<br>\r
+<br>\r
+</div>Sorry - should have been &quot;patched offlineimap&quot; ( <a href=3D=\r
+"https://github.com/aroig/offlineimap" target=3D"_blank">https://github.com=\r
+/aroig/offlineimap</a><br>\r
+<a href=3D"http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943=\r
+/focus=3D5970" target=3D"_blank">http://thread.gmane.org/gmane.mail.imap.of=\r
+flineimap.general/5943/focus=3D5970</a> and<br>\r
+<a href=3D"http://article.gmane.org/gmane.mail.imap.offlineimap.general/597=\r
+0" target=3D"_blank">http://article.gmane.org/gmane.mail.imap.offlineimap.g=\r
+eneral/5970</a> )<br>\r
+<br>\r
+It is synching the gmail labels into the x-keywords header as a comma separ=\r
+ated list. These could<br>\r
+then be used by notmuch to be added to the labels. It also does sync change=\r
+s from the X-Keywords<br>\r
+to gmail (see <a href=3D"http://thread.gmane.org/gmane.mail.imap.offlineima=\r
+p.general/5943/focus=3D5970" target=3D"_blank">http://thread.gmane.org/gman=\r
+e.mail.imap.offlineimap.general/5943/focus=3D5970</a> for details)</blockqu=\r
+ote>\r
+<div><br></div><div>I see.</div><div><br></div><div>I use the All Mail fold=\r
+er and get the tags using the X-GM-LABELS imap extension. I don&#39;t muck =\r
+with the mail headers in the process, fortunately.</div></div>\r
+\r
+--14dae93b61341d515c04d044ede3--\r