From 23144bec0b51a588a00d28caecf7a4e35730acd1 Mon Sep 17 00:00:00 2001 From: Rainer M Krug Date: Mon, 26 Nov 2012 16:13:31 +0100 Subject: [PATCH] Re: gmail label support patch available for oflineimap --- 1b/8f1e43515f41952cd26e6f0707781d47e3a0dd | 144 ++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 1b/8f1e43515f41952cd26e6f0707781d47e3a0dd diff --git a/1b/8f1e43515f41952cd26e6f0707781d47e3a0dd b/1b/8f1e43515f41952cd26e6f0707781d47e3a0dd new file mode 100644 index 000000000..8035a4464 --- /dev/null +++ b/1b/8f1e43515f41952cd26e6f0707781d47e3a0dd @@ -0,0 +1,144 @@ +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 9058E431FB6 + for ; Mon, 26 Nov 2012 07:13:40 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=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 FpS7ImyK7DhN for ; + Mon, 26 Nov 2012 07:13:37 -0800 (PST) +Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com + [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id C9FDC431FAF + for ; Mon, 26 Nov 2012 07:13:36 -0800 (PST) +Received: by mail-bk0-f53.google.com with SMTP id j5so5864250bkw.26 + for ; Mon, 26 Nov 2012 07:13:35 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject + :references:in-reply-to:x-enigmail-version:content-type + :content-transfer-encoding; + bh=HfCYQKK5RR+0xFOE1of29vwFD9RDWHXOhxk1IiUmCXc=; + b=c0wMC5+GmC9iyo0+X892zXzAnO7mRCBWkhs+y32t8czv9BcRma420rQaeYgsg5hiWv + ZJvIrFMfZwvZ0rkl3U9aePkEfLLYjrwCuXzayvQCZ8p9pGG4simKCOxJT7meEj2PttUA + 0NvsPFUXRxSotVXJIvPKKDNEAadubNlCKuLEF+6bzYNTQCV5XEiSosA1+5XaDLwuwZhI + jyCs7Xd35i4/7AtLbOd4R5pvXzhM8UM0m6mDae+XFfy07ijLltByzF6GJGpw52fse4K3 + 3oM9HcvRpSvL2XFk8fnO3oHBhuUAqmtJiTl0u/osaGuYoYLQKYFCszVSB/OAqePI61ad + pnHw== +Received: by 10.204.150.220 with SMTP id z28mr3603649bkv.125.1353942814162; + Mon, 26 Nov 2012 07:13:34 -0800 (PST) +Received: from ?IPv6:2a01:e35:8baa:b070:900c:fca5:43fb:2bbf? + ([2a01:e35:8baa:b070:900c:fca5:43fb:2bbf]) + by mx.google.com with ESMTPS id e22sm8235019bke.14.2012.11.26.07.13.32 + (version=SSLv3 cipher=OTHER); Mon, 26 Nov 2012 07:13:33 -0800 (PST) +Message-ID: <50B3871B.2050509@gmail.com> +Date: Mon, 26 Nov 2012 16:13:31 +0100 +From: Rainer M Krug +User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 +MIME-Version: 1.0 +To: David Bremner +Subject: Re: gmail label support patch available for oflineimap +References: <87zk24ctko.fsf@convex-new.cs.unb.ca> +In-Reply-To: <87zk24ctko.fsf@convex-new.cs.unb.ca> +X-Enigmail-Version: 1.5a1pre +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: 7bit +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +Reply-To: Rainer@krugs.de +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 26 Nov 2012 15:13:41 -0000 + +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +On 26/11/12 15:44, David Bremner wrote: +> Rainer M Krug writes: +> +>> there is a patch available for synching gmail labels to X-Keywords in the message (full +>> thread see http://article.gmane.org/gmane.mail.imap.offlineimap.general/5943 ). +>> +>> Would notmuch be able to translate these X-Keywords into tags, so that one could use notmuch +>> and it's tags as gmail uses the labels? +> +> Reading tags from X-Keywords would be a Simple Matter of Programming (TM), although you'd have +> to be sure you could trust that header as injected by you and not some evil adversary. There +> would also be some questions about forwarding such messages (e.g. should the X-Labels be +> stripped when forwarding). + +Good points - haven't considered them yet. + +> +> I expect there would be some resistance to writing X-Labels back to message files, since having +> read-only message files is more or less a design goal. + +That I definitely agree and don't like that much. + +> +> In summary, it could probably be done, but I'm not sure it would be a better approach than +> interfacing directly with gmail via their extended IMAP interface. Personally, if I was +> interested in solving this problem, I'd be more interested in a solution that didn't wed me to +> offline imap, if the two solutions were in the same rough ballpark of effort. The direct method +> would also not modify mail messages. Still, others might feel differently. + +But wouldn't this go above notmuch as an email tagging and indexing tool? OK - from emacs one can +send emails and it is a fully fledged email client, but it does *only interact* with the maildir +and it's tag database. Adding a layer to communicate with a remote server (gmail in this case) +would defy the purpose of having notmuch. In my opinion, Synching from gmail to local maildir +should be done by another tool, and this synching includes the synching of the gmail labels. + +Cheers, + +Rainer + +> +> The notion of storing labels in messages has been mooted before as a general synching solution. +> That might make it more interesting to me. +> +> d +> + + +- -- +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 : +33 - (0)9 58 10 27 44 + +Fax (D): +49 - (0)3 21 21 25 22 44 + +email: Rainer@krugs.de + +Skype: RMkrug +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.11 (GNU/Linux) +Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ + +iEYEARECAAYFAlCzhxoACgkQoYgNqgF2egoNXQCfSZk7f+gzZKWabFVs3y5hyI62 +tKQAmwVHaOI2pv8PIHCK1DDUX4FmMhi1 +=p5xm +-----END PGP SIGNATURE----- -- 2.26.2