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 EB3C9431FC0 for ; Tue, 24 Feb 2015 16:42:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.74 X-Spam-Level: * X-Spam-Status: No, score=1.74 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DNS_FROM_AHBL_RHSBL=2.438, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 XW44ly7hp4n8 for ; Tue, 24 Feb 2015 16:42:16 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 75E83431FBF for ; Tue, 24 Feb 2015 16:42:16 -0800 (PST) Received: by labgq15 with SMTP id gq15so550641lab.3 for ; Tue, 24 Feb 2015 16:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=nUCPHpGh062BPLVzC0Lp2kru0B2xObnEOifSbGCqjho=; b=xzpwayo2aKVThOPSMTXtXPU6QAiTFb3Ww0eBa8HVn+F5hrQKl7dQdmaJggqkS4PnyU i3ndhAMxlvxfnyHSXEozT3M3QjzjY5CNjMC/ftqQhErX9hqRK2+AGBPmxnYT6nKBemJw n97RhALXFlTK5uz7EcZRSRk0AGSMZH6NELjxbmdI41/UJbJlR2+RJxZdTpm9+YyzLHFM RX9EUp1bR3bVCyL7zxjGrmPj05ID0Y707Omxq+g7SVT+68lzxDrBEGyRJ/6pJTz+IyFj c5jdkdLVapuMz5LkITWgtk9c6DrF+MY9oJ9yAxLktxDFVOhtZOUXc7k61N5L637KDsql CEbA== X-Received: by 10.112.188.165 with SMTP id gb5mr427022lbc.35.1424824499141; Tue, 24 Feb 2015 16:34:59 -0800 (PST) MIME-Version: 1.0 Sender: chm.duquesne@gmail.com Received: by 10.114.77.193 with HTTP; Tue, 24 Feb 2015 16:34:39 -0800 (PST) From: Christophe-Marie Duquesne Date: Wed, 25 Feb 2015 01:34:39 +0100 X-Google-Sender-Auth: vdFRKrs-G8q3DyNj52mTfAVOLPc Message-ID: Subject: post-tag hook? To: notmuch@notmuchmail.org Content-Type: multipart/alternative; boundary=001a11c36da22383d2050fdeceb9 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 00:42:20 -0000 --001a11c36da22383d2050fdeceb9 Content-Type: text/plain; charset=UTF-8 Hi, Is there a way to run a command every time a message gets tagged? 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? Cheers, Christophe-Marie --001a11c36da22383d2050fdeceb9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Is there a way to run a command every time a me= ssage gets tagged?

I would like to keep in sync tags and folder name= s. 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 f= ind 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?

Cheers,
Christophe-Marie
--001a11c36da22383d2050fdeceb9--