Re: gmail label support patch available for oflineimap
authorRainer M Krug <r.m.krug@gmail.com>
Mon, 26 Nov 2012 15:13:31 +0000 (16:13 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:02 +0000 (09:51 -0800)
1b/8f1e43515f41952cd26e6f0707781d47e3a0dd [new file with mode: 0644]

diff --git a/1b/8f1e43515f41952cd26e6f0707781d47e3a0dd b/1b/8f1e43515f41952cd26e6f0707781d47e3a0dd
new file mode 100644 (file)
index 0000000..8035a44
--- /dev/null
@@ -0,0 +1,144 @@
+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 9058E431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Nov 2012 07:13:40 -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 FpS7ImyK7DhN for <notmuch@notmuchmail.org>;\r
+       Mon, 26 Nov 2012 07:13:37 -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 C9FDC431FAF\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Nov 2012 07:13:36 -0800 (PST)\r
+Received: by mail-bk0-f53.google.com with SMTP id j5so5864250bkw.26\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Nov 2012 07:13:35 -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=HfCYQKK5RR+0xFOE1of29vwFD9RDWHXOhxk1IiUmCXc=;\r
+       b=c0wMC5+GmC9iyo0+X892zXzAnO7mRCBWkhs+y32t8czv9BcRma420rQaeYgsg5hiWv\r
+       ZJvIrFMfZwvZ0rkl3U9aePkEfLLYjrwCuXzayvQCZ8p9pGG4simKCOxJT7meEj2PttUA\r
+       0NvsPFUXRxSotVXJIvPKKDNEAadubNlCKuLEF+6bzYNTQCV5XEiSosA1+5XaDLwuwZhI\r
+       jyCs7Xd35i4/7AtLbOd4R5pvXzhM8UM0m6mDae+XFfy07ijLltByzF6GJGpw52fse4K3\r
+       3oM9HcvRpSvL2XFk8fnO3oHBhuUAqmtJiTl0u/osaGuYoYLQKYFCszVSB/OAqePI61ad\r
+       pnHw==\r
+Received: by 10.204.150.220 with SMTP id z28mr3603649bkv.125.1353942814162;\r
+       Mon, 26 Nov 2012 07:13:34 -0800 (PST)\r
+Received: from ?IPv6:2a01:e35:8baa:b070:900c:fca5:43fb:2bbf?\r
+       ([2a01:e35:8baa:b070:900c:fca5:43fb:2bbf])\r
+       by mx.google.com with ESMTPS id e22sm8235019bke.14.2012.11.26.07.13.32\r
+       (version=SSLv3 cipher=OTHER); Mon, 26 Nov 2012 07:13:33 -0800 (PST)\r
+Message-ID: <50B3871B.2050509@gmail.com>\r
+Date: Mon, 26 Nov 2012 16:13:31 +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: David Bremner <david@tethera.net>\r
+Subject: Re: gmail label support patch available for oflineimap\r
+References: <k8vn08$62g$2@ger.gmane.org> <87zk24ctko.fsf@convex-new.cs.unb.ca>\r
+In-Reply-To: <87zk24ctko.fsf@convex-new.cs.unb.ca>\r
+X-Enigmail-Version: 1.5a1pre\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Content-Transfer-Encoding: 7bit\r
+Cc: 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: Mon, 26 Nov 2012 15:13:41 -0000\r
+\r
+-----BEGIN PGP SIGNED MESSAGE-----\r
+Hash: SHA1\r
+\r
+On 26/11/12 15:44, David Bremner wrote:\r
+> Rainer M Krug <R.M.Krug@gmail.com> writes:\r
+> \r
+>> there is a patch available for synching gmail labels to X-Keywords in the message (full\r
+>> thread see http://article.gmane.org/gmane.mail.imap.offlineimap.general/5943 ).\r
+>> \r
+>> Would notmuch be able to translate these X-Keywords into tags, so that one could use notmuch\r
+>> and it's tags as gmail uses the labels?\r
+> \r
+> Reading tags from X-Keywords would be a Simple Matter of Programming (TM), although you'd have\r
+> to be sure you could trust that header as injected by you and not some evil adversary.  There\r
+> would also be some questions about forwarding such messages (e.g. should the X-Labels be \r
+> stripped when forwarding).\r
+\r
+Good points - haven't considered them yet.\r
+\r
+> \r
+> I expect there would be some resistance to writing X-Labels back to message files, since having\r
+> read-only message files is more or less a design goal.\r
+\r
+That I definitely agree and  don't like that much.\r
+\r
+> \r
+> In summary, it could probably be done, but I'm not sure it would be a better approach than\r
+> interfacing directly with gmail via their extended IMAP interface.  Personally, if I was\r
+> interested in solving this problem, I'd be more interested in a solution that didn't wed me to \r
+> offline imap, if the two solutions were in the same rough ballpark of effort. The direct method\r
+> would also not modify mail messages. Still, others might feel differently.\r
+\r
+But wouldn't this go above notmuch as an email tagging and indexing tool? OK - from emacs one can\r
+send emails and it is a fully fledged email client, but it does *only interact* with the maildir\r
+and it's tag database. Adding a layer to communicate with a remote server (gmail in this case)\r
+would defy the purpose of having notmuch. In my opinion, Synching from gmail to local maildir\r
+should be done by another tool, and this synching includes the synching of the gmail labels.\r
+\r
+Cheers,\r
+\r
+Rainer\r
+\r
+> \r
+> The notion of storing labels in messages has been mooted before as a general synching solution.\r
+> That might make it more interesting to me.\r
+> \r
+> d\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
+iEYEARECAAYFAlCzhxoACgkQoYgNqgF2egoNXQCfSZk7f+gzZKWabFVs3y5hyI62\r
+tKQAmwVHaOI2pv8PIHCK1DDUX4FmMhi1\r
+=p5xm\r
+-----END PGP SIGNATURE-----\r