From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id D7C536DE0233 for ; Sun, 25 Nov 2018 07:56:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.34 X-Spam-Level: X-Spam-Status: No, score=-0.34 tagged_above=-999 required=5 tests=[AWL=-0.240, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tqj9Ftu9AY1I for ; Sun, 25 Nov 2018 07:55:59 -0800 (PST) Received: from smtp.gaspard.ninja (grym.ekleog.org [94.23.42.210]) by arlo.cworth.org (Postfix) with ESMTPS id 3188D6DE0232 for ; Sun, 25 Nov 2018 07:55:58 -0800 (PST) Received: by smtp.gaspard.ninja (OpenSMTPD) with ESMTP id fa3c7926; Sun, 25 Nov 2018 15:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=leo.gaspard.io; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=grym-20170528; bh=OxlC8n43rMZN2wJW mEg5+J8JZ5Y=; b=IBeOpqxXHR5n6dh0DS7JKWo33N4wXTfNeClUvMmfBsbYptgw Ud3dBrom2fnoDyriUCeMFre58aql2SFYIUShFt3QoCqbd/deFJ5eydg4g1gPsiMO 3HQb7CBh1z0r53iZsULWcXyax88u8m1jGrHSTsf0be7icdr1Cf7wlvOAg9A= Received: by smtp.gaspard.ninja (OpenSMTPD) with ESMTP id c86674a0; Sun, 25 Nov 2018 15:55:52 +0000 (UTC) Received: from localhost (llwynog [local]) by llwynog (OpenSMTPD) with ESMTPA id 86637439; Sun, 25 Nov 2018 15:55:50 +0000 (UTC) From: Leo Gaspard To: Jeffrey Ratcliffe , notmuch@notmuchmail.org Subject: Re: Tag hook In-Reply-To: <20181125162547.3e36021c@pluto.fritz.box> References: <20181125162547.3e36021c@pluto.fritz.box> Date: Mon, 26 Nov 2018 00:55:50 +0900 Message-ID: <87y39h2ltl.fsf@llwynog.ekleog.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Sun, 25 Nov 2018 15:56:02 -0000 Jeffrey Ratcliffe writes: > Is there any suitable hook in notmuch? Or will I have to write some > lisp in notmuch-config.el? In the case of the latter, has anyone > already done something similar? Not exactly what you're asking for, but I personally handle this issue with commands like this in my automatically-tagging script: ``` notmuch search --format=text0 --output=files tag:junk and not folder:Junk | \ xargs -0I '{}' mv '{}' /.../Junk/cur/ ``` It's not exactly a tag hook, but as it's run before and after any sync with my IMAP folder, it works well enough for my use case.