From: Jason A. Donenfeld Date: Fri, 7 Dec 2012 15:32:41 +0000 (+0100) Subject: Re: gmail importer script X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=69f74427ee81f59693103539dc21f8f05de3627b;p=notmuch-archives.git Re: gmail importer script --- diff --git a/83/29baa4e213862b6524d42ea3f9c89e35007995 b/83/29baa4e213862b6524d42ea3f9c89e35007995 new file mode 100644 index 000000000..1d7e22b70 --- /dev/null +++ b/83/29baa4e213862b6524d42ea3f9c89e35007995 @@ -0,0 +1,147 @@ +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 59B63431FBC + for ; Fri, 7 Dec 2012 07:32:43 -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 0e20GUOcWjPU for ; + Fri, 7 Dec 2012 07:32:42 -0800 (PST) +Received: from homiemail-a5.g.dreamhost.com (caiajhbdcbbj.dreamhost.com + [208.97.132.119]) + by olra.theworths.org (Postfix) with ESMTP id B5AB5431FAE + for ; Fri, 7 Dec 2012 07:32:42 -0800 (PST) +Received: from homiemail-a5.g.dreamhost.com (localhost [127.0.0.1]) + by homiemail-a5.g.dreamhost.com (Postfix) with ESMTP id 45530704076 + for ; Fri, 7 Dec 2012 07:32:42 -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=P49L0oabiMKX/EoGvXS6Aumo6zs=; b=IL + sTYcVUW+6NQ5SP9dEmGedTStzEUO88C8y4/bsFwZucFCdeNp4KVdNkj7VHMtj7jT + 02grd9KGUS3ofD2elj23duRiZZCmReMtuMslRobu4UeHg3zXcsE+9J3/El2b7vKR + nqE3MQR65h2EFvbs9CHSlMIvBpumsOa+vUMSxJg3E= +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-a5.g.dreamhost.com (Postfix) with ESMTPSA id DEB5C704074 + for ; Fri, 7 Dec 2012 07:32:41 -0800 (PST) +Received: by mail-oa0-f53.google.com with SMTP id j6so537694oag.26 + for ; Fri, 07 Dec 2012 07:32:41 -0800 (PST) +MIME-Version: 1.0 +Received: by 10.182.130.99 with SMTP id od3mr3335786obb.61.1354894361317; Fri, + 07 Dec 2012 07:32:41 -0800 (PST) +Received: by 10.76.33.70 with HTTP; Fri, 7 Dec 2012 07:32:41 -0800 (PST) +In-Reply-To: <50C1F5C3.6010201@gmail.com> +References: + + <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com> + + <50C1F5C3.6010201@gmail.com> +Date: Fri, 7 Dec 2012 16:32:41 +0100 +Message-ID: + +Subject: Re: gmail importer script +From: "Jason A. Donenfeld" +To: Rainer@krugs.de +Content-Type: multipart/alternative; boundary=14dae93b61341d515c04d044ede3 +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 15:32:43 -0000 + +--14dae93b61341d515c04d044ede3 +Content-Type: text/plain; charset=ISO-8859-1 + +On Fri, Dec 7, 2012 at 2:57 PM, Rainer M Krug wrote: +> +> > +> > +> > 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? +> +> Sorry - should have been "patched offlineimap" ( +> https://github.com/aroig/offlineimap +> http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970and +> http://article.gmane.org/gmane.mail.imap.offlineimap.general/5970 ) +> +> It is synching the gmail labels into the x-keywords header as a comma +> separated list. These could +> then be used by notmuch to be added to the labels. It also does sync +> changes from the X-Keywords +> to gmail (see +> http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970for details) + + +I see. + +I use the All Mail folder and get the tags using the X-GM-LABELS imap +extension. I don't muck with the mail headers in the process, fortunately. + +--14dae93b61341d515c04d044ede3 +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable + +

On Fri, Dec 7, 2012 at 2:57 PM, Rainer M= + Krug <r.m.krug@gmail.com> wrote:
+
+>
+>
+> 2) I am downloading with the patched notmuch (to add x-keywords contai= +ning the labels) only
+> the "All Mail" folder - does your script use this informatio= +n (if present) to tag the emails?
+>
+>
+> What is the patched notmuch? What does that do?
+
+
Sorry - should have been "patched offlineimap" ( https://github.com= +/aroig/offlineimap
+http://thread.gmane.org/gmane.mail.imap.of= +flineimap.general/5943/focus=3D5970 and
+http://article.gmane.org/gmane.mail.imap.offlineimap.g= +eneral/5970 )
+
+It is synching the gmail labels into the x-keywords header as a comma separ= +ated list. These could
+then be used by notmuch to be added to the labels. It also does sync change= +s from the X-Keywords
+to gmail (see http://thread.gmane.org/gman= +e.mail.imap.offlineimap.general/5943/focus=3D5970 for details) +

I see.

I use the All Mail fold= +er and get the tags using the X-GM-LABELS imap extension. I don't muck = +with the mail headers in the process, fortunately.
+ +--14dae93b61341d515c04d044ede3--