From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OMvUIsB6v18bKgAA0tVLHw (envelope-from ) for ; Thu, 26 Nov 2020 09:52:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IFCZHsB6v1/mUAAAbx9fmQ (envelope-from ) for ; Thu, 26 Nov 2020 09:52:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AD36E940253 for ; Thu, 26 Nov 2020 09:51:59 +0000 (UTC) Received: from localhost ([::1]:35310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiDwU-0008AR-6j for larch@yhetil.org; Thu, 26 Nov 2020 04:51:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiDwL-0008A5-FZ for help-guix@gnu.org; Thu, 26 Nov 2020 04:51:49 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:35313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiDwJ-0003vk-DG for help-guix@gnu.org; Thu, 26 Nov 2020 04:51:48 -0500 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 5B1FD100019; Thu, 26 Nov 2020 09:51:41 +0000 (UTC) From: Pierre Neidhardt To: zimoun , Kyle Meyer Subject: Re: Workflow with mu4e + magit for sending patchsets to guix? In-Reply-To: <86a6v5ty39.fsf@gmail.com> References: <87ima5f3mi.fsf@dustycloud.org> <86eeksq2v4.fsf@gmail.com> <877dqkpv4t.fsf@kyleam.com> <87pn4ca1c7.fsf@ambrevar.xyz> <86zh3gnkew.fsf@gmail.com> <87k0u9x075.fsf@ambrevar.xyz> <86a6v5ty39.fsf@gmail.com> Date: Thu, 26 Nov 2020 10:51:41 +0100 Message-ID: <87k0u8v42a.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.178.231; envelope-from=mail@ambrevar.xyz; helo=relay11.mail.gandi.net X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.944, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: inc X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -2.11 X-TUID: 8NMPMVWGyfgN --=-=-= Content-Type: text/plain Fixed: --8<---------------cut here---------------start------------->8--- (defvar ambrevar/known-mailing-list-archives '(("help-guix@gnu.org" . "guix-user") ("guix-devel@gnu.org" . "guix-devel") ("debbugs.gnu.org" . "guix-bugs")) "Alist of mail adresses and their Yhetil name. Alternatively the key may just be a host name against which a recipient will be matched.") (defun ambrevar/guess-yhetil-link (message-id) (let* ((all-addresses (mapcar #'second (mail-extract-address-components (mapconcat #'identity (list (notmuch-show-get-header :To) (notmuch-show-get-header :Cc)) ", ") 'all))) (mailing-list (cdr (seq-find (lambda (pair) (let ((address-or-host (car pair))) (if (string-match "@" address-or-host) (member address-or-host all-addresses) (seq-find (lambda (address) (string-match address-or-host address)) all-addresses)))) ambrevar/known-mailing-list-archives)))) (when mailing-list (concat "https://yhetil.org/" mailing-list "/" message-id)))) (defun ambrevar/guess-yhetil-link-prefer-patches (message-id) (let ((ambrevar/known-mailing-list-archives (copy-alist ambrevar/known-mailing-list-archives))) (push '("debbugs.gnu.org" . "guix-patches") ambrevar/known-mailing-list-archives) (ambrevar/guess-yhetil-link message-id))) (add-to-list 'notmuch-show-stash-mlarchive-link-alist (cons "Yhetil" #'ambrevar/guess-yhetil-link)) (add-to-list 'notmuch-show-stash-mlarchive-link-alist (cons "Yhetil/patches" #'ambrevar/guess-yhetil-link-prefer-patches)) (setq notmuch-show-stash-mlarchive-link-default "Yhetil") --8<---------------cut here---------------end--------------->8--- The last line should be useful ;) Note that I've set two entries, one that prefer guix-patches over guix-bugs because they seem to use the same recipient domain (debbugs.gnu.org) and I don't know how to differentiate the two. -- Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl+/eq0SHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/PO8H/RYrGIKtdp7Q1u083GZPVcc4jS/x4nM5 9LHlYWG0TXcNCT0gwPSs/rDKJNStWCjsIWoGx8pA8/i0Qu0Z11MyADY/wMeHW2UC sh2kpIsdsuHIxjVHt2eMHQNHI6TjT13o3Fr6NvwOLItYmyapDgvlsvyZP66EpJyy 4pec6vpk5HEP0c2sqD5ILwHqRhPDoaGXISOsqua7di9jvYziuC4j6yLAlovuNtB/ /MV/NpZ61lfIkc1ZR+qEUlcIXvkHr/OWl/S7DFy+3Bo5pKgPzMeUcFmTfSZyiHj9 kpCO4HTxWeamPjXT4Hd977687HtkxC4P5lDwX8dA7aCOnaYCL8tIw1k= =r2XE -----END PGP SIGNATURE----- --=-=-=--