Re: gmail importer script
authorRainer M Krug <R.M.Krug@gmail.com>
Fri, 7 Dec 2012 08:53:52 +0000 (09:53 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:41 +0000 (09:51 -0800)
e6/eb093ae5bd83393fe6557f712d202f6ae8ebf6 [new file with mode: 0644]

diff --git a/e6/eb093ae5bd83393fe6557f712d202f6ae8ebf6 b/e6/eb093ae5bd83393fe6557f712d202f6ae8ebf6
new file mode 100644 (file)
index 0000000..c7c966e
--- /dev/null
@@ -0,0 +1,112 @@
+Return-Path: <gmn-notmuch@m.gmane.org>\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 130B7431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 00:54:13 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.202\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.202 tagged_above=-999 required=5\r
+       tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
+       NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001]\r
+       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 PKPAJo8j04TY for <notmuch@notmuchmail.org>;\r
+       Fri,  7 Dec 2012 00:54:12 -0800 (PST)\r
+Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0BF7D431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 00:54:12 -0800 (PST)\r
+Received: from list by plane.gmane.org with local (Exim 4.69)\r
+       (envelope-from <gmn-notmuch@m.gmane.org>) id 1TgthM-0000MJ-CD\r
+       for notmuch@notmuchmail.org; Fri, 07 Dec 2012 09:54:20 +0100\r
+Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7])\r
+       by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
+       id 1AlnuQ-0007hv-00\r
+       for <notmuch@notmuchmail.org>; Fri, 07 Dec 2012 09:54:20 +0100\r
+Received: from R.M.Krug by arn78-1-88-186-171-7.fbx.proxad.net with local\r
+       (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00\r
+       for <notmuch@notmuchmail.org>; Fri, 07 Dec 2012 09:54:20 +0100\r
+X-Injected-Via-Gmane: http://gmane.org/\r
+To: notmuch@notmuchmail.org\r
+From: Rainer M Krug <R.M.Krug@gmail.com>\r
+Subject: Re: gmail importer script\r
+Date: Fri, 07 Dec 2012 09:53:52 +0100\r
+Lines: 45\r
+Message-ID: <50C1AEA0.9090508@gmail.com>\r
+References:\r
+ <CAHmME9om0twqigr0L2pwXtbj4ceBVVFz0HqxkwFfB-AnusP2VQ@mail.gmail.com>\r
+       <50c16b03.47e2440a.6038.ffffedce@mx.google.com>\r
+Mime-Version: 1.0\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Content-Transfer-Encoding: 7bit\r
+X-Complaints-To: usenet@ger.gmane.org\r
+X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net\r
+User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0\r
+In-Reply-To: <50c16b03.47e2440a.6038.ffffedce@mx.google.com>\r
+X-Enigmail-Version: 1.5a1pre\r
+Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.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 08:54:13 -0000\r
+\r
+-----BEGIN PGP SIGNED MESSAGE-----\r
+Hash: SHA1\r
+\r
+On 07/12/12 05:05, Kushal Kumaran wrote:\r
+> "Jason A. Donenfeld" <Jason@zx2c4.com> writes:\r
+> \r
+>> Hi folks,\r
+>> \r
+>> I wrote a script that imports emails and tags from gmail. It's resumable and appears to be\r
+>> working reasonably well. I could use some experienced eyes looking at it, as my first\r
+>> exposure to notmuch was just a few hours ago.\r
+>> \r
+>> http://git.zx2c4.com/gmail-notmuch/tree/gmail-notmuch.py\r
+>> \r
+> \r
+> Not specific to notmuch, but not every gmail user has a @gmail.com or @googlemail.com email\r
+> address.  Google Apps users can have arbitrary email addresses, and still use gmail's imap and\r
+> web interface.\r
+> \r
+> I finished syncing my gmail locally (using offlineimap), and creating tags by hand not one day\r
+> ago, or I would certainly have tried out this script.\r
+> \r
+\r
+Sounds interesting.\r
+\r
+I don't know much python, so excuse my questions:\r
+\r
+1) are multiple downloads of an email done, if the mail has multiple labels?\r
+2) I am downloading with the patched notmuch (to add x-keywords containing the labels) only the\r
+"All Mail" folder - does your script use this information (if present) to tag the emails?\r
+3) are label changes in gmail synched into the local emails?\r
+4) I assume, local changes are not synced to gmail?\r
+5) how are conflicts handled (local tag changes versus label changes on gmail)?\r
+\r
+Thanks,\r
+\r
+Rainer\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+Comment: Using GnuPG with Mozilla - http://www.enigmail.net/\r
+\r
+iEYEARECAAYFAlDBrqAACgkQoYgNqgF2egqrEwCeOSr5TGZgAIaRvzHCl1Nv+DBk\r
+ko4AnRT0FMBwYNRGzSclXxZXzaH0Q23x\r
+=Sx0B\r
+-----END PGP SIGNATURE-----\r
+\r