From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MAT4ANkhvl9bNgAA0tVLHw (envelope-from ) for ; Wed, 25 Nov 2020 09:20:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cGFuONghvl/QNgAAB5/wlQ (envelope-from ) for ; Wed, 25 Nov 2020 09:20:24 +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 7DBFA9402A6 for ; Wed, 25 Nov 2020 09:20:24 +0000 (UTC) Received: from localhost ([::1]:41612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khqyM-0004hQ-2z for larch@yhetil.org; Wed, 25 Nov 2020 04:20:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khqyB-0004h1-92 for help-guix@gnu.org; Wed, 25 Nov 2020 04:20:11 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:49875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khqy6-00022K-6n for help-guix@gnu.org; Wed, 25 Nov 2020 04:20:09 -0500 X-Originating-IP: 90.92.160.122 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 781751C0010; Wed, 25 Nov 2020 09:19:59 +0000 (UTC) From: Pierre Neidhardt To: zimoun , Kyle Meyer Subject: Re: Workflow with mu4e + magit for sending patchsets to guix? In-Reply-To: <86zh3gnkew.fsf@gmail.com> References: <87ima5f3mi.fsf@dustycloud.org> <86eeksq2v4.fsf@gmail.com> <877dqkpv4t.fsf@kyleam.com> <87pn4ca1c7.fsf@ambrevar.xyz> <86zh3gnkew.fsf@gmail.com> Date: Wed, 25 Nov 2020 10:19:58 +0100 Message-ID: <87k0u9x075.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.183.197; envelope-from=mail@ambrevar.xyz; helo=relay5-d.mail.gandi.net X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.944, RCVD_IN_DNSWL_NONE=-0.0001, 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-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: lwb6RhtaUZnb --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable zimoun writes: > And serves the mapping via public-inbox. > Concretely, I do =E2=80=99cl=E2=80=99 (notmuch-show-stash-mlarchive-link)= reading your > message, select the archive and I get: > > > > Select the archive because by default it is linux-kernel related > archives: LKML, MARC, etc. even if I do not know about Gmane. My config > is: > > --8<---------------cut here---------------start------------->8--- > ;; c l stashes a hyperlink using Message-ID instead of numbering, e.g.: > ;; https://yhetil.org/guix-user/acba4413-a4ca-d7e5-08f7-24ac9839b830@po= steo.de > ;; vs https://lists.gnu.org/archive/html/help-guix/2020-10/msg00177.html > (mapcar (lambda (what) > (add-to-list 'notmuch-show-stash-mlarchive-link-alist > `(,what . ,(concat "https://yhetil.org/" what "/= ")))) > (reverse'("guix-devel" > "guix-user" > "guix-science" > "gwl" > "guix-bugs" > "guix-patches"))) > --8<---------------cut here---------------end--------------->8--- > > (Instead of manually selecting the archive, an helper function could > parse the header fields and do the job but I have not been annoyed > enough yet. :-)) At your service: =2D-8<---------------cut here---------------start------------->8--- (defvar ambrevar/known-mailing-list-archives '(("help-guix@gnu.org" . "guix-user") ("guix-devel@gnu.org" . "guix-devel") ("guix-bugs" . "guix-bugs") ("guix-patches" . "guix-patches")) "Alist of mail adresses and their Yhetil name.") (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) (member (car pair) all-addresses)) ambrevar/known-mailing-list-archives)))) (when mailing-list (concat "https://yhetil.org/" mailing-list "/" message-id)))) (add-to-list 'notmuch-show-stash-mlarchive-link-alist (cons "Yhetil" #'ambrevar/guess-yhetil-link)) =2D-8<---------------cut here---------------end--------------->8--- I had to create an alist to map between the address of the mailing list and the Yhetil name because in the case of guix-user, the address is not the same (help-guix). I wonder why. Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl++Ib4SHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/++AH/RMjO2CXkfPYFGibkF9fbdSdBUaYV/V6 s9YqCELZ2HDkAZ8C+PYmxAfaOLeMYj8vFFqDhYYD2cMaSD7qPaAHxSGhs/i2MYH1 6s2QMzZk6FFq+7phAFkaLbL0gIV7+vAbkRm/J+iGypVu6dF9+Gv+ZtdPhI+bFqLi 2wmuzGTGx2SqeOdJNdv1135IVoKtWcrFhnQOfG76Lb5zeHH0/2r8bKGF3C0z8b0q bNrIMKTsj/46Z5Ba7/dvabr9gK3UTK3Abu2N8iOFK8CXAjTnDYsg304yf1xTDeqk A2rlDARgyBaE0h0oZHpVyNGenCb9z7jGFOxv0dLfamnxDE8KO6Z2DQE= =p/kd -----END PGP SIGNATURE----- --=-=-=--