From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12.migadu.com with LMTPS id cLujA6Efg2R9YAEATFOONw (envelope-from ) for ; Fri, 09 Jun 2023 14:48:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aDWCA6Efg2SIcwEA9RJhRA (envelope-from ) for ; Fri, 09 Jun 2023 14:48:33 +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 902C03B5F3 for ; Fri, 9 Jun 2023 14:48:32 +0200 (CEST) From: jlicht@fsfe.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1686314911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EQV7UWOxZ1jdqCqih1SEDL0Peg56Zx0d9jC80HdN96g=; b=fPOEjLpqk/Rj5oywgjAuj2bCDomZS2a7DsYuH+AG+MgCOyJKVIYlNmwLUN8Iww7mz7pai1 ZdC6QRlwEv9z01JzL4WAimFmvohRCZ45ZA9nt5QD46p66ffUPnmfYTNTfhjJnMUtAh+CyV 7if14ij/EZHxZKPKyA7WVwH8MutyhBM= To: piem@inbox.kyleam.com Cc: Jelle Licht Subject: [PATCH v2 1/5] piem: Add :gnu-package keyword to piem-inboxes Date: Fri, 9 Jun 2023 14:48:25 +0200 Message-Id: <20230609124829.29629-2-jlicht@fsfe.org> In-Reply-To: <20230609124829.29629-1-jlicht@fsfe.org> References: <20230608165926.12586-1-jlicht@fsfe.org> <20230609124829.29629-1-jlicht@fsfe.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=kyleam.com; t=1686314912; a=rsa-sha256; cv=none; b=nrdlgDLCUws8gTGH6Zg3kowa84owL7qMBUvdvYd39/tQHSqzJevNhOVy/IjM4MjthEobjU n8Es1rZCDYtDHJlz6AUxN6RbWhiZn2KLJ4BTuv6Sq/0RyQ5RwZSNC7AXY7ACj0R3efdxSe iy8qarANS/9W2c+q8sQkM1MUYIZC6tbly4jwxCBMpRGsbI/CXDZU99KsvvnA49jmu/Wvyy bS4REMUGTQphivmYxOsipgKUcNew3iRHf2Ro4MYzZE1IXYYro4KCCZbn/M601dATmMM/aQ 2ACdRsxCX4qI6GfbFxvm/RQIeu8sTguz6hWfH1Wpp27RFR0wjoEqCPJPxmm+rQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fsfe.org header.s=2021100501 header.b=fPOEjLpq; dmarc=pass (policy=none) header.from=fsfe.org; spf=pass (aspmx1.migadu.com: domain of jlicht@fsfe.org designates 2001:aa8:ffed:f5f3::151 as permitted sender) smtp.mailfrom=jlicht@fsfe.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1686314912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=EQV7UWOxZ1jdqCqih1SEDL0Peg56Zx0d9jC80HdN96g=; b=EXVhJB4539+sM55nzEL4ACU91IDVH3+GXNGaCwoMNltMZQD8kWAvNW+becXpLuU5BpQx1A rP3pfXmaQ9wINfcU3hyLNOk6g/2nxrRgt1pfk1w1F/qbavQDZzCdjw8DLCqSyTgfF2hMQ1 YGuGMr9/Y2sZnq8sgKSk0Yru9W/DC0D5pRE9nseuYAzmJ0szsT7VgAkOwJFcEFikZ8P07t UdOC/0HOqkeH8Ht1YjMr8lrHR/KsN+ncOnYK080rLs78I7F5tE1m4stYLsLGy3C/II3YSt 8B+2Vhg4HxugJszj5Zk/GcqSY0Uhscfp+90FPF2lh+Yw9PqbD8uD7WjASnseSA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fsfe.org header.s=2021100501 header.b=fPOEjLpq; dmarc=pass (policy=none) header.from=fsfe.org; spf=pass (aspmx1.migadu.com: domain of jlicht@fsfe.org designates 2001:aa8:ffed:f5f3::151 as permitted sender) smtp.mailfrom=jlicht@fsfe.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.70 X-Spam-Score: -7.70 X-Migadu-Queue-Id: 902C03B5F3 X-TUID: FhjVbtAdOGdl From: Jelle Licht With the `:gnu-package` keyword, users can configure a regex to match against the X-GNU-PR-PACKAGE email header for the GNU Bug Tracker. --- Documentation/piem.texi | 6 ++++++ piem.el | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/piem.texi b/Documentation/piem.texi index 26962a4..99185d3 100644 --- a/Documentation/piem.texi +++ b/Documentation/piem.texi @@ -168,6 +168,12 @@ repository (e.g., if the inbox receives patches for multiple projects, or if you use a few dedicated Git worktrees for different types of patches), set @code{:coderepo} to a list of locations. +@cindex issue tracking +@cindex Debbugs, issue tracking system +When using the Debbugs instance at @uref{https://bugs.gnu.org} to +retrieve messages, an inbox can mapped to each message by setting +@code{:gnu-package} for an inbox. + @findex piem-merged-inboxes @vindex piem-get-inboxes-from-config If you mirror some inboxes locally (e.g., for fast local access or for diff --git a/piem.el b/piem.el index 568e91b..914dd23 100644 --- a/piem.el +++ b/piem.el @@ -83,6 +83,8 @@ list that supports the following properties: A URL hosting HTTPS archives. :maildir A Maildir directory to inject messages into. + :gnu-package + A GNU Bug Tracker label to match with for the inbox. Here's an example for the public-inbox project itself: @@ -393,7 +395,7 @@ files." (rx string-start "publicinbox." (group (one-or-more not-newline)) "." (group - (or "address" "coderepo" "listid" "maildir" "url")) + (or "address" "coderepo" "listid" "maildir" "url" "gnu-package")) string-end) key) (let* ((inbox-name (match-string 1 key)) -- 2.40.1