From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12.migadu.com with LMTPS id 2FXcE69LhGQhqAAATFOONw (envelope-from ) for ; Sat, 10 Jun 2023 12:08:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id H8J/E69LhGR6iwAAauVa8A (envelope-from ) for ; Sat, 10 Jun 2023 12:08:47 +0200 Received: from mail1.fsfe.org (mail1.fsfe.org [IPv6:2001:aa8:ffed:f5f3::151]) (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 146DF2DF7F for ; Sat, 10 Jun 2023 12:08:47 +0200 (CEST) From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1686391726; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uxlQPUiyPN6oJP44H90C9q5jXwNwKzDXybpySAYHur0=; b=rpYiXS0AXLtQSwiIBRHpcBi210TU/BfKLsU2bhPA6qLiXGFAT5Eg7DHpzS8gxs0dFaUl86 9Tnb0SnWq3ti8UyfD03/8JQUify0enMeG/oM1i0kIU9C5zGJCRsa09AwNO7z9ruv2wWEoG qXFZFtmkjKHzYbBOu/oi6XCTxwe8wj8= To: Kyle Meyer Cc: piem@inbox.kyleam.com Subject: Re: [PATCH v2 4/5] gnus: Add support for matching inbox by X-GNU-PR-PACKAGE header. In-Reply-To: <87r0qjncbb.fsf@kyleam.com> References: <87r0qjncbb.fsf@kyleam.com> Date: Sat, 10 Jun 2023 12:08:46 +0200 Message-ID: <87edmjmxxt.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN Authentication-Results: aspmx1.migadu.com; none X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.00 X-Spam-Score: -4.00 X-Migadu-Queue-Id: 146DF2DF7F X-TUID: qsbGwx17ORaL Kyle Meyer writes: > jlicht@fsfe.org writes: > >> From: Jelle Licht >> >> --- >> piem-gnus.el | 6 +++++- >> 1 file changed, 5 insertions(+), 1 deletion(-) >> >> diff --git a/piem-gnus.el b/piem-gnus.el >> index e8e5f1e..25b80b7 100644 >> --- a/piem-gnus.el >> +++ b/piem-gnus.el >> @@ -42,7 +42,11 @@ >> "Return inbox name from a Gnus article" >> (when (derived-mode-p 'gnus-article-mode 'gnus-summary-mode) >> (with-current-buffer gnus-original-article-buffer >> - (piem-inbox-by-header-match)))) >> + (or (piem-inbox-by-header-match) >> + (let ((gnu-package >> + (car (piem--message-fetch-decoded-fields >> + '("x-gnu-pr-package"))))) >> + (piem-inbox-by-gnu-package-match gnu-package)))))) > > As mentioned in the last message, I think it'd be good to move this to > piem-inbox-by-header-match. Done in V3, (which drops this particular patch).