Re: gmail importer script
authorRainer M Krug <r.m.krug@gmail.com>
Fri, 7 Dec 2012 13:57:23 +0000 (14:57 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:42 +0000 (09:51 -0800)
05/7619283abcf3b5be8dded7bc485d7cc7835fbc [new file with mode: 0644]

diff --git a/05/7619283abcf3b5be8dded7bc485d7cc7835fbc b/05/7619283abcf3b5be8dded7bc485d7cc7835fbc
new file mode 100644 (file)
index 0000000..07a9a19
--- /dev/null
@@ -0,0 +1,184 @@
+Return-Path: <r.m.krug@gmail.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 3C58D431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 05:57:31 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 Eo0fLN6cXMJz for <notmuch@notmuchmail.org>;\r
+       Fri,  7 Dec 2012 05:57:30 -0800 (PST)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 5FB21431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 05:57:30 -0800 (PST)\r
+Received: by mail-bk0-f53.google.com with SMTP id j5so257855bkw.26\r
+       for <notmuch@notmuchmail.org>; Fri, 07 Dec 2012 05:57:27 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject\r
+       :references:in-reply-to:x-enigmail-version:content-type\r
+       :content-transfer-encoding;\r
+       bh=424wBJ1DPaj7swj0bHBqtW5r1DeACcc9nEok0Yq3LJM=;\r
+       b=OdIIrDlkfOAxR3An+iT1wZ+NhuNvRA892BD4uR+5XgvwR5Fxfl6aLkFyK54pPIuiG/\r
+       sC6wfCcupBmFDZ7GNX12/kcLLSdZ5dbbbfK1SkeV7h/LaLKN9J5USuhjXQlXVFhRbffu\r
+       VhTXfy4v2cMexGYVAvepDWtU16XiPw/B4yO0TDTOsTwgX/w8Sl8bXwRZY6G96A1fsrt0\r
+       LPGnNmAZuGV2iwi1Y91zckEC1LxNc0qNQiwLHAPX8ckd/hwVEco+OHotGDnSql5mdH+1\r
+       ZOMeQAMADb6S7cY8qRsaDaW/F8Og04YO6Nx+8poI6s2zbCPUIUv99/EQpjZLMO4G6z9u\r
+       NgOQ==\r
+Received: by 10.204.129.214 with SMTP id p22mr1930381bks.47.1354888646337;\r
+       Fri, 07 Dec 2012 05:57:26 -0800 (PST)\r
+Received: from ?IPv6:2a01:e35:8baa:b070:741d:77d0:b9d:1d94?\r
+       ([2a01:e35:8baa:b070:741d:77d0:b9d:1d94])\r
+       by mx.google.com with ESMTPS id u3sm9186735bkw.9.2012.12.07.05.57.24\r
+       (version=SSLv3 cipher=OTHER); Fri, 07 Dec 2012 05:57:25 -0800 (PST)\r
+Message-ID: <50C1F5C3.6010201@gmail.com>\r
+Date: Fri, 07 Dec 2012 14:57:23 +0100\r
+From: Rainer M Krug <r.m.krug@gmail.com>\r
+User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0\r
+MIME-Version: 1.0\r
+To: "Jason A. Donenfeld" <Jason@zx2c4.com>\r
+Subject: Re: gmail importer script\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
+In-Reply-To:\r
+ <CAHmME9pKBJ1Brad=Z1pErSjGqjsZ8Xn56uM-k-U7WLgwjspN_w@mail.gmail.com>\r
+X-Enigmail-Version: 1.5a1pre\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Content-Transfer-Encoding: 7bit\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
+Reply-To: Rainer@krugs.de\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 13:57:31 -0000\r
+\r
+-----BEGIN PGP SIGNED MESSAGE-----\r
+Hash: SHA1\r
+\r
+On 07/12/12 14:48, Jason A. Donenfeld wrote:\r
+> \r
+> \r
+> On Fri, Dec 7, 2012 at 9:53 AM, Rainer M Krug <R.M.Krug@gmail.com <mailto:R.M.Krug@gmail.com>>\r
+> wrote:\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
+> \r
+> \r
+> No.\r
+\r
+Good.\r
+\r
+> \r
+> \r
+> 2) I am downloading with the patched notmuch (to add x-keywords containing the labels) only\r
+> the "All Mail" folder - does your script use this information (if 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" ( https://github.com/aroig/offlineimap\r
+http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970 and\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 separated list. These could\r
+then be used by notmuch to be added to the labels. It also does sync changes from the X-Keywords\r
+to gmail (see http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970 for details)\r
+\r
+> \r
+> \r
+> 3) are label changes in gmail synched into the local emails?\r
+> \r
+> \r
+> It pulls labels from gmail messages into notmuch, with the labels in tact, once per each\r
+> email.\r
+\r
+Good.\r
+\r
+> \r
+> \r
+> 4) I assume, local changes are not synced to gmail?\r
+> \r
+> \r
+> Correctamundo.\r
+> \r
+\r
+OK.\r
+\r
+> \r
+> \r
+> 5) how are conflicts handled (local tag changes versus label changes on gmail)?\r
+> \r
+> \r
+> They aren't. See 3.\r
+> \r
+\r
+Thanks,\r
+\r
+Rainer\r
+\r
+\r
+> \r
+> \r
+> Thanks,\r
+> \r
+> Rainer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG\r
+> with Mozilla - http://www.enigmail.net/\r
+> \r
+> iEYEARECAAYFAlDBrqAACgkQoYgNqgF2egqrEwCeOSr5TGZgAIaRvzHCl1Nv+DBk \r
+> ko4AnRT0FMBwYNRGzSclXxZXzaH0Q23x =Sx0B -----END PGP SIGNATURE-----\r
+> \r
+> _______________________________________________ notmuch mailing list notmuch@notmuchmail.org\r
+> <mailto:notmuch@notmuchmail.org> http://notmuchmail.org/mailman/listinfo/notmuch\r
+> \r
+> \r
+\r
+\r
+- -- \r
+Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.\r
+(Germany)\r
+\r
+Centre of Excellence for Invasion Biology\r
+Stellenbosch University\r
+South Africa\r
+\r
+Tel :       +33 - (0)9 53 10 27 44\r
+Cell:       +33 - (0)6 85 62 59 98\r
+Fax :       +33 - (0)9 58 10 27 44\r
+\r
+Fax (D):    +49 - (0)3 21 21 25 22 44\r
+\r
+email:      Rainer@krugs.de\r
+\r
+Skype:      RMkrug\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+Comment: Using GnuPG with Mozilla - http://www.enigmail.net/\r
+\r
+iEYEARECAAYFAlDB9cMACgkQoYgNqgF2egrEkACeLD9p4CUW3EhliFQ44cigpZdF\r
+o8AAnA9M8tmw52W3m62QFJaFuoOLdto2\r
+=6Zrk\r
+-----END PGP SIGNATURE-----\r