From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eAjbNU0kV2HXJgAAgWs5BA (envelope-from ) for ; Fri, 01 Oct 2021 17:07:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2BuFMU0kV2EJBgAAB5/wlQ (envelope-from ) for ; Fri, 01 Oct 2021 15:07:57 +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 35C101C6B3 for ; Fri, 1 Oct 2021 17:07:57 +0200 (CEST) Received: from localhost ([::1]:42966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWK8i-0008Vp-Ac for larch@yhetil.org; Fri, 01 Oct 2021 11:07:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWK8M-0008UN-GC for emacs-orgmode@gnu.org; Fri, 01 Oct 2021 11:07:34 -0400 Received: from ciao.gmane.io ([116.202.254.214]:50400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWK8H-0001mn-Ly for emacs-orgmode@gnu.org; Fri, 01 Oct 2021 11:07:34 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mWK8C-0001g1-Cg for emacs-orgmode@gnu.org; Fri, 01 Oct 2021 17:07:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Grabbing the link to a message on the archive Date: Fri, 1 Oct 2021 22:07:14 +0700 Message-ID: References: <87ilyjuoed.fsf@bzg.fr> <1461762.1632974404@apollo2.minshall.org> <87v92i4p0c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 X-Mozilla-News-Host: news://news.gmane.io In-Reply-To: <87v92i4p0c.fsf@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-1.127, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633100877; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3A64DrZfXL/QIKwOWUTOOErA5PHfAs2PrZlwbohnbeU=; b=tGONFPVDIMZVkZUxnnVHqVG3f/JBN174T0kg4+ES7Cp5uB8/lGBrkCQ2wO28ySRVirIW11 YkNddp+21FFhtjlKk6F6m1BTXoVHlDzh9HGKQVYHcEX+VB+9/VhLIDwGmvk2Cyo1/3M6OZ vT76xCtkMzXoXpX5P97Tie0auXnqBUAtc5Qddn1M9bq9IF1OTfFJIlxwSVGAzvgIUBfFm8 59RPNZt95le58/Idu2LmR8tYVhOgvUbjS85QbS9MejrQzXRZFdw6yhHozGk5PwuicU/xFT wrieZtN2LT8stNbweAhrpkObyFmn6+oSOkQ7M7LqAAI/285VvPk2z4lzwX8XRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633100877; a=rsa-sha256; cv=none; b=EQHOJbYWWDA/lfi0cCUtM+aB0upk0BAfnNSGKi1rqTTSrs9JzMUh/pO2ThLwhiiyICMCYx F3c7hNK8B0v8Aw9ZgOjCHY/Hp6gwhZSCXcuzrgN2VTp6/XpQ24MOToRBtFnkZgZmCQJ8R1 M6b+/D2NkZdVVMUAqBjOgH6VIBMuM3GmUKDprI53UElmS+7NkMZ663E0/sECilqDhY/7PW TdXxxVU0/uXsnVXGzTF45McUcG93Y5TANA2ipcXEMkUl0Fj+MKSgUt2ASD1RATCiFsZCC7 HA/sMT764yCSPrMlDenJZJRTtZNx0w7DF4J5yNsmZk7srOt8wQji7Jg1LTQ9bA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.80 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 35C101C6B3 X-Spam-Score: -1.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: XzGpxIu1wEtH On 30/09/2021 12:18, Timothy wrote: > Hi Greg, > >> i love the searching on list.orgmode.org, but i have this recurrent >> dream: that some day each e-mail message will come with a header listing >> the URL for that message on . (though i also >> worry this might open us up to some sort of spam, or other, attack?) >> >> and, i’ll add my thanks and congratulations on 9.5! >> >> cheers, Greg > > If you use mu4e, the following may be of some interest: > ┌──── > │ (defun +mu4e-ml-message-link (msg) > │ (cond > │ ((string= "emacs-orgmode.gnu.org" (mu4e-message-field msg :mailing-list)) > │ (message "Link %s copied to clipboard" (gui-select-text (format "https://list.orgmode.org/%s" (mu4e-message-field msg :message-id))))) > │ (t (user-error "Mailing list %s not supported" (mu4e-message-field msg :mailing-list))))) > │ (add-to-list 'mu4e-view-actions (cons "link to message ML" #'+mu4e-ml-message-link t)) > └──── > > I expect this could be adapted to other clients (notmuch, gnus, etc.) > without much trouble :) lists.gnu.org allows to map Message-ID to URL as well: https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=%2Bmessage-id%3A87tuolhyl7.fsf%40posteo.net&idxname=emacs-orgmode Unfortunately I have no idea how to get Message-ID having a link to particular message on lists.gnu.org without search by e.g. subject and author. I had an impression that mailman mangles links like https://list.orgmode.org/87tuolhyl7.fsf@posteo.net since they resemble email addresses, so should be protected from spammers. I do not have links to prove it for mailman but debbugs certainly does it. In this sense links to lists.gnu.org are safer: https://lists.gnu.org/archive/html/emacs-orgmode/2021-04/msg00133.html A cheat for debbugs maybe the following: replace "@" to "%40" https://list.orgmode.org/87tuolhyl7.fsf%40posteo.net/T/#u (Message that I used in these examples: Juan Manuel Macías. [tip] search this mailing list with helm-surfraw. 2021-04-05 9:25 UTC) list.orgmode.org (public inbox) is an ordinary subscriber just as you, so it can not add any link to messages delivered to you. There is a dedicated header Archived-At that mail list may add, unfortunately mailman does not know URL at the time of message processing, so it adds only a link to whole archive as List-Archive. https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/handlers/docs/rfc-2369.html#archive-headers Curiously news.gmane.io still adds Archived-At despite web interface was disabled years ago.