From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KJRBNHkzPGOOugAAbAwnHQ (envelope-from ) for ; Tue, 04 Oct 2022 15:22:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cFQgNHkzPGP/HAEAauVa8A (envelope-from ) for ; Tue, 04 Oct 2022 15:22:01 +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 6DF551538C for ; Tue, 4 Oct 2022 15:22:01 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DC30A5F360; Tue, 4 Oct 2022 13:21:58 +0000 (UTC) X-Greylist: delayed 482 seconds by postgrey-1.36 at yantan; Tue, 04 Oct 2022 12:56:20 UTC Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) by mail.notmuchmail.org (Postfix) with ESMTPS id 95FE45F026 for ; Tue, 4 Oct 2022 12:56:20 +0000 (UTC) Received: from set (set.irisa.fr [131.254.10.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 7DE555646DB; Tue, 4 Oct 2022 14:48:17 +0200 (CEST) From: Alan Schmitt To: Petter Reinholdtsen , notmuch@notmuchmail.org Subject: Re: Tag notmuch email based on header values? In-Reply-To: References: Date: Tue, 04 Oct 2022 14:48:14 +0200 Message-ID: <87y1tv92lt.fsf@m4x.org> MIME-Version: 1.0 X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Tue Oct 4 14:48:17 2022 +0200 (CEST)) X-Org-Mail: alan.schmitt.1995@polytechnique.org X-MailFrom: SRS0=xmVF=2F=petitepomme.net=alan.schmitt@bounces.m4x.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: 4GBQ3B6WGP5UD3BO3EFMKVLVIFZOLWJX X-Message-ID-Hash: 4GBQ3B6WGP5UD3BO3EFMKVLVIFZOLWJX X-Mailman-Approved-At: Tue, 04 Oct 2022 13:21:56 +0000 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: multipart/mixed; boundary="===============1009315150691520144==" X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664889721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=72dnBsc24K6fNH0dEIEjqyzSYXepZbypIFFvwiYYh+g=; b=uVol9nWYEyPCTqJeuPDSeeZ3Pv0/I4T5K/NNOzMfeSxzBFQoPxRuAfzU03jR1IiyOrA7/d C+ZYS6zYqJEYnJCtQ2rRP/is50+IpkPp+GeW0vY3RROkk45wSIk4JlsVoI4cQ02zRBJ6HO aRAeELObqoN5FMe1TD9H6xePedR0UrBHeF5LnArSxTB6AVZFLAo/fAYFzdRrrmaUgNzzHK NsM5KU1Y6sMh7NZq44VoRJlPCFIFexEnr/xKKn5jp13Wz/a4mz3s+EHqlxXW2ttuJYHTR5 YQyy0ratqX9KyV/OqS/wV97KbvAgxFCptUzQN86MBA6ku9ayU/AmB+HB2kIzhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664889721; a=rsa-sha256; cv=none; b=hjzVlpng2vdIgLT5+sAO7jd5IZg7WtR3V+iHcbb1GvPrJNNMfqYhq+6rtGvFQUPwUxfYGo y4stNrYZ3nlZoohv30VmVLBkVx93FsGQEscfrLs+q1JosRXeQKFBgpjXuAu/ZlupRlNuny NGYhGFFCws7+TjxITBBWalZKi4zb+CCSUxIqsyDKYCK0x6yj5/oQqoJn1PDYQxMY4Okvf5 XBMWxwLZwTMXyifjnPQdPwSnKz12U0bZ552Dua/MeGAPHAH5bLHRAopYdzRYJrFeYdYtFf Tl8uo40TtMntvKmkLKzMZJNbE3cgiYQsdOCWY/SQuiTVh0yfO1XPh2M0oucFiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=petitepomme.net (policy=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-Spam-Score: 1.61 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=petitepomme.net (policy=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: 6DF551538C X-Spam-Score: 1.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: LJKUgUl+9453 --===============1009315150691520144== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Hello, On 2022-10-04 14:04, Petter Reinholdtsen writes: > I would like to tag all emails with a specific header, but fail to find > a way to do this. Is this a missing feature in notmuch? > > To be specific, I want to filter out emails related to request tracker > tickets owned by me at the time of the email. These emails get a simple > RFC 822 style header in each email, that look like this: > > RT-Owner: myusername > > I tried searching for 'RT-Owner' without any success, and have read the > normuch-search-terms(7) dokucmentation trying to find a clue. Is there > something obvious I am missing. I use afew for that, with rules like this: [HeaderMatchingFilter.1] header = List-Id pattern = discuss.ocaml.org|caml-list.inria.fr tags = +caml;+lists I only run it on new mail. If you run afew without the --new flag, I think it applies it to all mail. Best, Alan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFRBAEBCAA7FiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAmM8K44dHGFsYW4uc2No bWl0dEBwZXRpdGVwb21tZS5uZXQACgkQBA0KO07S5cexMggArlkwo7pbi3J4+/KB ahHOSzW5WpEEshl6T9aCYC8l0FEclAUEx/P8vNAG7easS2oFViia1Vx03MEZSmFM hy6gck5YMwe6Dexn7hlMPsOcEql5z1z0kIW+ipMuhBJaBra5HUYSr3x709WB9q6c qs2ajnuLczbObKgYEMxvlb8tO8CyJxsAE7uf1O7x2TMqGmfvi88uUGt6rf5+K7T1 pF7bE7h+ZVYCArO7q4/DU/Pd4Gp15YkmoKfcjm2lhXNRDOwCtEFTA4Rk1B35isU4 x+7MzQA3yz/I+52mQsvLwTI/LRGSj/6dDb8xaCsnSfBSTp8PiJbLa9+AoR/qk+SJ IqYfCA== =dC8D -----END PGP SIGNATURE----- --=-=-=-- --===============1009315150691520144== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1009315150691520144==--