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 75E7C431FAF for ; Thu, 29 Nov 2012 00:58:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.202 X-Spam-Level: * X-Spam-Status: No, score=1.202 tagged_above=-999 required=5 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2] 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 DzWZTLpVxjUs for ; Thu, 29 Nov 2012 00:58:04 -0800 (PST) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A68AE431FAE for ; Thu, 29 Nov 2012 00:58:04 -0800 (PST) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tdzwf-000750-Ua for notmuch@notmuchmail.org; Thu, 29 Nov 2012 09:58:09 +0100 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Nov 2012 09:58:09 +0100 Received: from R.M.Krug by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Nov 2012 09:58:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: notmuch@notmuchmail.org From: Rainer M Krug Subject: Re: gmail label support in offlineimap - update Date: Thu, 29 Nov 2012 09:57:45 +0100 Lines: 46 Message-ID: <50B72389.8060708@gmail.com> References: <50B62409.7050706@gmail.com> <87wqx5bnv1.fsf@convex-new.cs.unb.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <87wqx5bnv1.fsf@convex-new.cs.unb.ca> X-Enigmail-Version: 1.5a1pre Cc: Jeremy Nickurak , notmuch 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: Thu, 29 Nov 2012 08:58:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/11/12 19:09, David Bremner wrote: > Jeremy Nickurak writes: > > >> The other direction sounds like it would be trickier though, since there's no obvious way to >> say "what notmuch tags have changed since time X?". Is this something that notmuch could >> provide? > > Not currently, but there have been patches proposed; see e.g. > > id:1323796305-28789-1-git-send-email-schnouki@schnouki.net > >> Alternatively, would it be a good idea to give notmuch a tags-changed hook, so that an >> external tool could be called on a tag change? That sounds like would solve this problem, >> keep the gmail/imap logic safely away from notmuch, and probably provide some really >> interesting other opportunities for automation of things by tags. > > See the thread at > > id:1342503373-16979-1-git-send-email-dominik@with-h.at > > for some patches and discussion. I think a "tag changed hook" could solve both problems - when there would be an additional "messge changed" hook: the "message changed" hook could be used to add the x-headers to the notmuch database, and the "tag changed" hook could do the inverse, i.e. update the x-headers in the message. This would be a clean approach, which could be used for many things. Cheers, Rainer > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlC3I4kACgkQoYgNqgF2egoanQCfV8OL1qhXWMfV5lMOqKf6szPM zKoAn0sZzi3f/z0r4lgH0/s19z9f1ozr =/fc1 -----END PGP SIGNATURE-----