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 DBCEE431FB6 for ; Mon, 26 Nov 2012 06:44:36 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 I7zoMQv0O0HJ for ; Mon, 26 Nov 2012 06:44:36 -0800 (PST) Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 4DED6431FAF for ; Mon, 26 Nov 2012 06:44:36 -0800 (PST) Received: from convex-new.cs.unb.ca ([131.202.245.35]) by tesseract.cs.unb.ca with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TczvA-000075-Fn; Mon, 26 Nov 2012 10:44:34 -0400 Received: from bremner by convex-new.cs.unb.ca with local (Exim 4.80) (envelope-from ) id 1Tczv5-0000du-4C; Mon, 26 Nov 2012 10:44:23 -0400 From: David Bremner To: Rainer M Krug , notmuch@notmuchmail.org Subject: Re: gmail label support patch available for oflineimap In-Reply-To: References: User-Agent: Notmuch/0.14+76~g84a0c52 (http://notmuchmail.org) Emacs/24.2.1 (x86_64-pc-linux-gnu) Date: Mon, 26 Nov 2012 10:44:23 -0400 Message-ID: <87zk24ctko.fsf@convex-new.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain X-Spam_bar: - 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: Mon, 26 Nov 2012 14:44:37 -0000 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). 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. 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. 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