From 5e99b2232cef849d9527e556fe8035e0fb483ed0 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 7 Dec 2012 14:48:35 +0100 Subject: [PATCH] Re: gmail importer script --- 8c/90ac062bc8284ace378202b19ed11be07bb513 | 198 ++++++++++++++++++++++ 1 file changed, 198 insertions(+) create mode 100644 8c/90ac062bc8284ace378202b19ed11be07bb513 diff --git a/8c/90ac062bc8284ace378202b19ed11be07bb513 b/8c/90ac062bc8284ace378202b19ed11be07bb513 new file mode 100644 index 000000000..8e7d6564a --- /dev/null +++ b/8c/90ac062bc8284ace378202b19ed11be07bb513 @@ -0,0 +1,198 @@ +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 B3BD2431FB6 + for ; Fri, 7 Dec 2012 05:48:39 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.099 +X-Spam-Level: +X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 nZ9-Xh0mEWcO for ; + Fri, 7 Dec 2012 05:48:39 -0800 (PST) +Received: from homiemail-a2.g.dreamhost.com (mailbigip.dreamhost.com + [208.97.132.5]) + by olra.theworths.org (Postfix) with ESMTP id EE8B5431FAE + for ; Fri, 7 Dec 2012 05:48:38 -0800 (PST) +Received: from homiemail-a2.g.dreamhost.com (localhost [127.0.0.1]) + by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 20FCA280071 + for ; Fri, 7 Dec 2012 05:48:38 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version + :in-reply-to:references:date:message-id:subject:from:to:cc: + content-type; s=zx2c4.com; bh=+Qrk28CPyulIpK80k12YwA9rizs=; b=S/ + AoWxq+MnK28AWs6BWqZ7PPaT5M/yCLVX7v/2PJ7B37REbiqKKG6hxQN4tDlEgtHZ + YBCSBxo6pB5JtWAnIE+R1bQd7ab5OoJRb2KpAmp2t7+kqDne16JVPFyPgXsn/8dl + bUEIgETa51G94d2WFPodbQB62M59nMur/rEfIbMNc= +Received: from mail-oa0-f53.google.com (mail-oa0-f53.google.com + [209.85.219.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + (Authenticated sender: jason@zx2c4.com) + by homiemail-a2.g.dreamhost.com (Postfix) with ESMTPSA id 2ABA728006D + for ; Fri, 7 Dec 2012 05:48:37 -0800 (PST) +Received: by mail-oa0-f53.google.com with SMTP id j6so415481oag.26 + for ; Fri, 07 Dec 2012 05:48:36 -0800 (PST) +MIME-Version: 1.0 +Received: by 10.60.172.164 with SMTP id bd4mr2679258oec.51.1354888115541; Fri, + 07 Dec 2012 05:48:35 -0800 (PST) +Received: by 10.76.33.70 with HTTP; Fri, 7 Dec 2012 05:48:35 -0800 (PST) +In-Reply-To: <50C1AEA0.9090508@gmail.com> +References: + + <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com> +Date: Fri, 7 Dec 2012 14:48:35 +0100 +Message-ID: + +Subject: Re: gmail importer script +From: "Jason A. Donenfeld" +To: Rainer M Krug +Content-Type: multipart/alternative; boundary=bcaec54c4fcad6570f04d043788f +Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org, + notmuch@notmuchmail.org +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 13:48:39 -0000 + +--bcaec54c4fcad6570f04d043788f +Content-Type: text/plain; charset=ISO-8859-1 + +On Fri, Dec 7, 2012 at 9:53 AM, Rainer M Krug wrote: +> +> Sounds interesting. +> +> I don't know much python, so excuse my questions: +> +> 1) are multiple downloads of an email done, if the mail has multiple +> labels? +> + +No. + + +> 2) I am downloading with the patched notmuch (to add x-keywords containing +> the labels) only the +> "All Mail" folder - does your script use this information (if present) to +> tag the emails? +> + +What is the patched notmuch? What does that do? + + +> 3) are label changes in gmail synched into the local emails? +> + +It pulls labels from gmail messages into notmuch, with the labels in tact, +once per each email. + + +> 4) I assume, local changes are not synced to gmail? +> + +Correctamundo. + + + +> 5) how are conflicts handled (local tag changes versus label changes on +> gmail)? +> + +They aren't. See 3. + + +> +> Thanks, +> +> Rainer +> -----BEGIN PGP SIGNATURE----- +> Version: GnuPG v1.4.11 (GNU/Linux) +> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ +> +> iEYEARECAAYFAlDBrqAACgkQoYgNqgF2egqrEwCeOSr5TGZgAIaRvzHCl1Nv+DBk +> ko4AnRT0FMBwYNRGzSclXxZXzaH0Q23x +> =Sx0B +> -----END PGP SIGNATURE----- +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch +> + +--bcaec54c4fcad6570f04d043788f +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable + +

On Fri, Dec 7, 2012 at 9:53 AM, Rainer M= + Krug <R.M.Krug@gmail.com> wrote:
+Sounds interesting.
+
+I don't know much python, so excuse my questions:
+
+1) are multiple downloads of an email done, if the mail has multiple labels= +?

No.
=A0
+ +2) I am downloading with the patched notmuch (to add x-keywords containing = +the labels) only the
+"All Mail" folder - does your script use this information (if pre= +sent) to tag the emails?

What is the pa= +tched notmuch? What does that do?
=A0
+ +3) are label changes in gmail synched into the local emails?

It pulls labels from gmail messages into notmuch, wit= +h the labels in tact, once per each email.
=A0
+ +4) I assume, local changes are not synced to gmail?
Correctamundo.

=A0
+ +5) how are conflicts handled (local tag changes versus label changes on gma= +il)?

They aren't. See 3.
= +=A0
+ +
+Thanks,
+
+Rainer
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.11 (GNU/Linux)
+Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
+
+iEYEARECAAYFAlDBrqAACgkQoYgNqgF2egqrEwCeOSr5TGZgAIaRvzHCl1Nv+DBk
+ko4AnRT0FMBwYNRGzSclXxZXzaH0Q23x
+=3DSx0B
+-----END PGP SIGNATURE-----
+

+_______________________________________________
+notmuch mailing list
+notmuch@notmuchmail.org
+http://notmuchmail.org/mailman/listinfo/notmuch
+

+ +--bcaec54c4fcad6570f04d043788f-- -- 2.26.2