--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 367B66DE1216\r
+ for <notmuch@notmuchmail.org>; Wed, 3 Feb 2016 08:04:23 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.308\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.308 tagged_above=-999 required=5 tests=[AWL=0.243,\r
+ RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id mOzJkBORrY-D for <notmuch@notmuchmail.org>;\r
+ Wed, 3 Feb 2016 08:04:18 -0800 (PST)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 627146DE119C\r
+ for <notmuch@notmuchmail.org>; Wed, 3 Feb 2016 08:04:18 -0800 (PST)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1aQzu5-0007h5-9w; Wed, 03 Feb 2016 11:03:37 -0500\r
+Received: (nullmailer pid 20156 invoked by uid 1000);\r
+ Wed, 03 Feb 2016 16:04:14 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Jan Pobrislo <ccx@webprojekty.cz>\r
+Cc: notmuch@notmuchmail.org\r
+Subject: Re: [PATCH/RFC 0/3] Maildir custom flags and notmuch tags\r
+In-Reply-To: <20160203165650.4ae528c1@dorje.v103.te2000>\r
+References: <1448504191-30974-1-git-send-email-igor.contato@gmail.com>\r
+ <87mvsd7cxr.fsf@zancas.localnet> <20160202175220.12f8a712@dorje.v103.te2000>\r
+ <87d1se9f2b.fsf@zancas.localnet> <20160203153250.56aa0b2b@dorje.v103.te2000>\r
+ <87egctyfbd.fsf@tesseract.cs.unb.ca>\r
+ <20160203165650.4ae528c1@dorje.v103.te2000>\r
+User-Agent: Notmuch/0.21+5~gca076ce (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Wed, 03 Feb 2016 12:04:14 -0400\r
+Message-ID: <878u31ye4h.fsf@tesseract.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 03 Feb 2016 16:04:23 -0000\r
+\r
+Jan Pobrislo <ccx@webprojekty.cz> writes:\r
+\r
+> On Wed, 03 Feb 2016 11:38:30 -0400\r
+> David Bremner <david@tethera.net> wrote:\r
+>> > I was pondering this before and would find it rather neat, but it is\r
+>> > bit more complicated than it might first seem. The hook needs to be\r
+>> > able to add arbitrary files to be watched for changes and deduce\r
+>> > from that which files need their tags re-read. \r
+>> \r
+>> perhaps lastmod: queries can help here. that's more or less what they\r
+>> added for.\r
+>> \r
+>> d\r
+>> \r
+>\r
+> That only helps with applying tags from notmuch to maildir, not\r
+> vice-versa, which is the main thing I was talking about.\r
+\r
+For changes to dovecot-keywords files, you're on your own. But changes\r
+to the actual maildir flags are file renames, which should trigger an\r
+increase in lastmod counter; if not I'd consider that a bug.\r
+\r
+d\r