Re: gmail label support patch available for oflineimap
authorRainer M Krug <r.m.krug@gmail.com>
Tue, 27 Nov 2012 19:32:07 +0000 (20:32 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:04 +0000 (09:51 -0800)
20/4da780905c8964cfec642e3ffed9402723c442 [new file with mode: 0644]

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