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 559D0431FBC for ; Tue, 24 Feb 2015 22:45:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 2.438 X-Spam-Level: ** X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 UOVHlv4hRXUP for ; Tue, 24 Feb 2015 22:45:04 -0800 (PST) Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net [87.98.215.224]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 828E7431FAF for ; Tue, 24 Feb 2015 22:45:03 -0800 (PST) Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim 4.80) (envelope-from ) id 1YQVZu-0007Z9-WF; Wed, 25 Feb 2015 06:36:15 +0000 Received: (nullmailer pid 29624 invoked by uid 1000); Wed, 25 Feb 2015 06:36:01 -0000 From: David Bremner To: Christophe-Marie Duquesne , notmuch@notmuchmail.org Subject: Re: post-tag hook? In-Reply-To: References: User-Agent: Notmuch/0.19+48~gb74ed1c (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Wed, 25 Feb 2015 07:36:01 +0100 Message-ID: <871tlepkfi.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain 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: Wed, 25 Feb 2015 06:45:12 -0000 Christophe-Marie Duquesne writes: > > I would like to keep in sync tags and folder names. The problem is that it > requires a full scan of the notmuch db, which is slow. If I was running > this script only on messages that got retagged since like run of my script > it would be much faster. Unfortunately I don't find a way to mark/save > these messages in a notmuch hook. > > I found an old thread from 2012, where somebody mentionned they implemented > a post-tag hook. Was this ever integrated? > I think the concensus was that we would rather go for tag "mtimes" as started with the series id:1413181203-1676-1-git-send-email-aclements@csail.mit.edu Unfortunately nobody yet found time to finish that series. d