From 26f4f328d33559525199d8182f454d9ab4b30c5f Mon Sep 17 00:00:00 2001 From: Rainer M Krug Date: Tue, 27 Nov 2012 20:32:07 +0100 Subject: [PATCH] Re: gmail label support patch available for oflineimap --- 20/4da780905c8964cfec642e3ffed9402723c442 | 212 ++++++++++++++++++++++ 1 file changed, 212 insertions(+) create mode 100644 20/4da780905c8964cfec642e3ffed9402723c442 diff --git a/20/4da780905c8964cfec642e3ffed9402723c442 b/20/4da780905c8964cfec642e3ffed9402723c442 new file mode 100644 index 000000000..49625ad52 --- /dev/null +++ b/20/4da780905c8964cfec642e3ffed9402723c442 @@ -0,0 +1,212 @@ +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 2121D431FAF + for ; Tue, 27 Nov 2012 11:32:11 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.798 +X-Spam-Level: +X-Spam-Status: No, score=-0.798 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] + 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 XA-a410m5wRe for ; + Tue, 27 Nov 2012 11:32:09 -0800 (PST) +Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com + [209.85.212.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E87F9431FAE + for ; Tue, 27 Nov 2012 11:32:08 -0800 (PST) +Received: by mail-wi0-f169.google.com with SMTP id hq12so4283697wib.2 + for ; Tue, 27 Nov 2012 11:32:07 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=mime-version:in-reply-to:references:date:message-id:subject:from:to + :cc:content-type; + bh=/a5c8qL6jHNcP+uohhvKrcIpwcV/ywmfyR0zakkBarU=; + b=NNWlo/XydtCsCQtOZcD8j0DBpP6C39YdvH18zJ6W9kNDyXaDozk7YWuUqP1Sz1g0ok + zn0Xl7DGpu0qKMxPOWOhzroz8N+uU6Bla+DAKcprIl8ubNpHJJvnHICL5G7q4noMvEVo + XBhNVIHMyzvqxE+e03X2tL8E0fHzgSAzgXm9tWbhxagrXNmNoOJENAnTRR5Te17NnY3X + 9xu0iFWgFNkpb2VN+m8QNLmpCdOoyxPtlDqi/IAwMbxEcEU4znKXRLvIx2VHHyOb99Kk + /lu1Ts2F3cm836CG9FxFGvUjd8qyByomlCgz7Z+oVtLPNhqHiaFGXngL/Y+d5VDkSMtU + u7fQ== +MIME-Version: 1.0 +Received: by 10.180.88.42 with SMTP id bd10mr20837351wib.8.1354044727701; Tue, + 27 Nov 2012 11:32:07 -0800 (PST) +Received: by 10.194.35.138 with HTTP; Tue, 27 Nov 2012 11:32:07 -0800 (PST) +In-Reply-To: +References: <87zk24ctko.fsf@convex-new.cs.unb.ca> + <50B3871B.2050509@gmail.com> <87r4ngcl00.fsf@convex-new.cs.unb.ca> + <50B48627.9040409@gmail.com> + + +Date: Tue, 27 Nov 2012 20:32:07 +0100 +Message-ID: + +Subject: Re: gmail label support patch available for oflineimap +From: Rainer M Krug +To: Michal Nazarewicz +Content-Type: multipart/alternative; boundary=f46d0444e927012f8a04cf7f1bb3 +Cc: 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: Tue, 27 Nov 2012 19:32:11 -0000 + +--f46d0444e927012f8a04cf7f1bb3 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable + +On 27 November 2012 20:24, Michal Nazarewicz wrote: + +> On Tue, Nov 27 2012, Rainer M Krug wrote: +> > Yes - offlineimap is not needed actually, but I personally I see +> > notmuch as an indexing / tagging program for a mailabox in maildir +> > format, which means local. So all changes are done locally, and not +> > bad on an imap server (or synching tags with an imap server). This +> > would be the job for offlineimap. But actually I don't care which +> > program is doing it. +> +> I'm actually completely lost now, since I've realised you're also OP, +> and it was my understanding that you proposed to use offlineimap to get +> the tags, save them in the X-something header, and make notmuch index +> those. But now you're saying that offlineimap is not needed? I must be +> missing something. +> + +I saw on the offlineimap mailing list, that somebody is using this approach +(x-header) to sync the gmail labels and to use them in his email client - +so I thought, why not read them as tags into notmuch and sync tgs back, so +one would have a sync between notmuch tags and gmail labels. But there was +some objections and it was questioned why offlineimap for this, and not +notmuch - and frankly, I don't hava any preferences. If it is i[plemented +in offlineimap and notmuch uses it, fine with me. If offlineimap stays as +it is and notmuch reads the labels directly, absolutely no problem. I am +merely intersted in the outcome - sync of notmuch tags with gmail labels - +whatever the path is. + + +> > Well - it is ust my feeling that the lesser changes are done to the +> > email and its headers, the better. +> +> Sure, but I don't think it's such a big issue, as it may be presented. +> If there was some better, not much more difficult, option, than sure, +> but otherwise, I think it's a good solution. +> + + +> +> -- +> Best regards, _ _ +> .o. | Liege of Serenely Enlightened Majesty of o' \,=3D./ `o +> ..o | Computer Science, Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz = + (o o) +> ooo +------------------ooO--(_)--Ooo-- +> +> +> + + +--=20 +Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, +UCT), Dipl. Phys. (Germany) + +Centre of Excellence for Invasion Biology +Stellenbosch University +South Africa + +Tel : +33 - (0)9 53 10 27 44 +Cell: +33 - (0)6 85 62 59 98 +Fax (F): +33 - (0)9 58 10 27 44 + +Fax (D): +49 - (0)3 21 21 25 22 44 + +email: Rainer@krugs.de + +Skype: RMkrug + +--f46d0444e927012f8a04cf7f1bb3 +Content-Type: text/html; charset=ISO-8859-2 +Content-Transfer-Encoding: quoted-printable + +


On 27 Nov= +ember 2012 20:24, Michal Nazarewicz <mina86@mina86.com> wrot= +e:
+
On Tue, Nov 27 2012, Rainer M Krug wrote:
+
> Yes - offlineimap is not needed actually, but = +I personally I see
+> notmuch as an indexing / tagging program for a mailabox in maildir
+> format, which means local. So all changes are done locally, and not +> bad on an imap server (or synching tags with an imap server). This
+> would be the job for offlineimap.  But actually I don't care = +which
+> program is doing it.
+
+
I'm actually completely lost now, since I've realised you'= +;re also OP,
+and it was my understanding that you proposed to use offlineimap to get
+the tags, save them in the X-something header, and make notmuch index
+those.  But now you're saying that offlineimap is not needed? &nbs= +p;I must be
+missing something.

I saw on the offlineimap mailin= +g list, that somebody is using this approach (x-header) to sync the gmail l= +abels and to use them in his email client - so I thought, why not read them= + as tags into notmuch and sync tgs back, so one would have a sync between n= +otmuch tags and gmail labels. But there was some objections and it was ques= +tioned why offlineimap for this, and not notmuch - and frankly, I don't= + hava any preferences. If it is i[plemented in offlineimap and notmuch uses= + it, fine with me. If offlineimap stays as it is and notmuch reads the labe= +ls directly, absolutely no problem. I am merely intersted in the outcome - = +sync of notmuch tags with gmail labels - whatever the path is.
+
+

+> Well - it is ust my feeling that the lesser changes are done to the +> email and its headers, the better.
+
+
Sure, but I don't think it's such a big issue, as it may be p= +resented.
+If there was some better, not much more difficult, option, than sure,
+but otherwise, I think it's a good solution.
 = +;
+

+--
+Best regards,                  = +;                     &nb= +sp; _     _
+.o. | Liege of Serenely Enlightened Majesty of      o' \= +,=3D./ `o
+..o | Computer Science,  Micha=B3 “mina86” Nazarewicz &nbs= +p;  (o o)
+ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--


<= +br>

--
Rainer M. Krug, PhD (Conservation Ecology, = +SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)
+
Centre of Excellence for Invasion Biology
Stellenbosch UniversitySouth Africa

Tel :       +33 - (0)9 53 10 27 44
C= +ell:       +33 - (0)6 85 62 59 98
Fax (F):     = +  +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21= + 25 22 44
+
email:      
Rainer@krugs.de

Skype:      RMkrug
+
+ +--f46d0444e927012f8a04cf7f1bb3-- -- 2.26.2