From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id ADq+OX/LlWR6DgAASxT56A (envelope-from ) for ; Fri, 23 Jun 2023 18:42:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mOXGOH/LlWQsdQEAG6o9tA (envelope-from ) for ; Fri, 23 Jun 2023 18:42:39 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 850E31319E for ; Fri, 23 Jun 2023 18:42:39 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 427585F4A6; Fri, 23 Jun 2023 16:42:37 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [192.99.9.157]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0A7C95E53F for ; Fri, 23 Jun 2023 16:42:35 +0000 (UTC) Received: from tethera.net (unknown [IPv6:2001:861:70:efc0:a853:366f:d008:acf6]) by phubs.tethera.net (Postfix) with ESMTPS id 4CE54180066; Fri, 23 Jun 2023 13:42:33 -0300 (ADT) Received: (nullmailer pid 414672 invoked by uid 1000); Fri, 23 Jun 2023 16:42:32 -0000 From: David Bremner To: Jan Detke , notmuch@notmuchmail.org Subject: Re: Usage of hooks w/ notmuch In-Reply-To: References: Date: Fri, 23 Jun 2023 19:42:32 +0300 Message-ID: <875y7ef7uv.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ZKNO6PYTT6P3E74TUV2S2IYHKAWHYXSY X-Message-ID-Hash: ZKNO6PYTT6P3E74TUV2S2IYHKAWHYXSY X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687538559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=bsicQ1CX6hcdD6k/uVhYEWhHDS2GyPcdKwgr40Imr34=; b=Bb99XWB9E3cdoRhaFaCufX2umq2VhFpehdg5cqaaAIqQP6tS16jSNcka28aCBFSWWmEhfZ cRem1nJtkNIypgM2/TXBuwpbrvEa+BulSFITj7E9R7GppabtVa/m1h/7B7w/JuctpwaVJJ EqyzzOXb6i4nSXZJ/nYEeIkIBlXXu3Tw3tEMap7pjfaI3dmaoRqEzLCoxjSFxpx/AAvh0Q CdUq2crUIhWMVNLhvO34xPrmS50/LxTeV5DKSyRGMP5dQQoYYXedFh3HnzJdpQ4zXrI1OE bW6RHUqNa3k5jtPPsGmvxABzbnKcSPaCVQrsxljRX9E11FK/iR+BpoU3HQsqbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687538559; a=rsa-sha256; cv=none; b=Bbn0q27uGYcx7HqSVCxzTVrr+tz5wrjK7j0Vxl9C8QOty94/hz1Fajgs6VIOANfDaYSgrP 9BKg6fqx3d+Ea9hbwRzkqHR0pYHF/rEJALZKZCA0GMrNeJDM3k+s72+kV1pN5rr8M6sOY3 3+R7+peLL29mbSpzP4wVF0uFGfEqj37CK/jMc4fckp08k03nNINW3qRLSTNTZ15uTzzDWA K2KJLoHjm51imtj2Kv/9bWLvyfRwwnMTXc88Gs6CnhBtXmiHqT5OdVIGT41hkM60AoHx/J C7/CXQQHhtbytcBhChJD52FrdZLHert2N7zB63CvuWPyeUm9NEsiTbXQq8S/hA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.48 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 850E31319E X-Spam-Score: -1.48 X-TUID: 2JOlY3hzDjLw Jan Detke writes: > I got a problem using hooks with notmuch (Version 0.37-3). I specified > the hook directory under [database] in my notmuch config. The script > (post-new.sh) is executable and works when invoked manually in the > terminal, but it does not get executed after invoking notmuch > new. There is no additional output given in the terminal. You need to follow the naming in notmuch-hooks(5) exactly, so /post-new rather than /post-new.sh d