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