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 ms5.migadu.com with LMTPS id YBm0DmaK1GMV6wAAbAwnHQ (envelope-from ) for ; Sat, 28 Jan 2023 03:37:26 +0100 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 UKTADmaK1GOKKAEA9RJhRA (envelope-from ) for ; Sat, 28 Jan 2023 03:37:26 +0100 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 D59C017F2E for ; Sat, 28 Jan 2023 03:37:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLb4c-0002H0-DI; Fri, 27 Jan 2023 21:36:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLb4a-0002Gs-N0 for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 21:36:08 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLb4Y-0006tO-Qt for emacs-orgmode@gnu.org; Fri, 27 Jan 2023 21:36:08 -0500 Received: by mail-pj1-x1032.google.com with SMTP id t12-20020a17090aae0c00b00229f4cff534so9262758pjq.1 for ; Fri, 27 Jan 2023 18:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=i1FD06m6f7B5G9EF1tHWCyYojWHv9z3JBToAEkn/B8o=; b=GGs7k3yGz7+Nwcg4ocAdwZvfqmOfYjqbHVLPZTfAOTS2712tc+/QbFoYoBHPn/gITY dapwYaY7siBRvWUpyXAhZ97U+Pd7ypcJnC3kbGzeSjg9aEQWHcSW7LJEE7nGT56AQTTN PIzgBE8oo8uILW6sG/bF7LhcvXqfa1UDZ/LBHbEx7UJxR87qDEp52Uxr7tnKBYPHcxof CIdRpKlbZZcUdMNmutWEOuYgEmyksJqxFCHIRBAo7UfSe1QH3++VpXH2WzLkdsth89p+ Y9mfCwfT/QxEMGPo/jz4xFAd+6b99qI2L6ZChEFmVqvhfkczWJJjOSu6B0j5P5ruaOO7 73Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i1FD06m6f7B5G9EF1tHWCyYojWHv9z3JBToAEkn/B8o=; b=bWW8HnR6cPbZ0sQjQFTpgHOdhoOO8tg+8ZhH125wVDK2GA267iBmertQHjw/iiP5Xe PhSoGyxM7i7dcDaZaE2OThJIymSDNmmRuARvz2wzkJj5ZedzkWyJJbE+5avm3g6PH6oc 5rkCEnGchwoLttT250Q5xPo8SQX6c392ko3FQRFDbtHBpbDuiAHWVUn4rA3jQ1MypQ7+ 4SmqLkImXk72MIjyaTCO1gAdhnMSlXZ+bRR+OY4T5oFk5oqBAkTXcqTKFBJYNZJx8OuC f0YJu7x13qiyIACm+csIMXHo5cmkjVodFRahrDXR6MA+tHJhNEvXA284nt/TRkRopwFZ tfnw== X-Gm-Message-State: AO0yUKVRvxt3r/AO6NBAlsMt1tlp5pHI12CKQYWrsT7BQkdFxCQ/eimR +7+EydFOFeVnqm0bvv2AZ7w= X-Google-Smtp-Source: AK7set+7X5maU2rycKuy9ZLgbOL5W2uYIVNspBwBz0FqmeTknS+MzdTf6Pk6AfLd8/25gHjmHEy6LA== X-Received: by 2002:a17:90b:390a:b0:229:649a:9a05 with SMTP id ob10-20020a17090b390a00b00229649a9a05mr12118698pjb.11.1674873364656; Fri, 27 Jan 2023 18:36:04 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id m10-20020a17090a414a00b002270155254csm3372420pjg.24.2023.01.27.18.36.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Jan 2023 18:36:04 -0800 (PST) Message-ID: <2d36ea04-4ad9-fcda-a09b-0f9600987ff9@gmail.com> Date: Sat, 28 Jan 2023 09:36:01 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Link from orgmode file to E-Mail (using kmail or notmuch) Content-Language: en-US To: Bruno Barbier , emacs-orgmode@gnu.org References: <3218434.44csPzL39Z@linux.fritz.box> <21750362.EfDdHjke4D@linux.fritz.box> <939b62c1-34ee-051e-405a-328b841d3d16@gmail.com> <1888293.taCxCBeP46@localhost.localdomain> <63d01412.050a0220.9611.9c4d@mx.google.com> From: Max Nikulin In-Reply-To: <63d01412.050a0220.9611.9c4d@mx.google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=manikulin@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-1.148, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674873445; 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:dkim-signature; bh=i1FD06m6f7B5G9EF1tHWCyYojWHv9z3JBToAEkn/B8o=; b=Ed+ZMVEg4NAdFRT70sVNHAMTYDXlLTD27uA55pCQn/6PAqhUCeUwAWYOFH4ReYrfQ0ci2v HsktreNbeh+ctDT2fVjHHd2LctG0Xrs31kKkRR6PI+qk6/qYCQVMat2mbAe5tP80td/EyC CeUoDdWuedq1FHzwMfJVDs8kwileD/nV6X5kmZU75okhHfXCu1VPTJYLKodweoZ76Ys3HZ f7JPriZGPAP+6T36LKIH4rMSiJp6/T3t+7Urcdb0vEvdPWb6i4P6QfWlcbPW8Xtd/cDirc B8N6cSLK75pk1semeJ0tjRAI0raGZ++X8PBAk6ytS9IeJ+8cj+cYqS8WFUQPwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=GGs7k3yG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674873445; a=rsa-sha256; cv=none; b=gA7uycvhAIsOsIt2Vi2mc/YftAb7NQnDmt+/lqAF20RkMpVmSaigbFXcLV034MZKdRw8FW /rbcuMK7Ds2FBoP5poa51sr0kjuXUmOcBkswEhstHy50AFYJJm4eILaq0yfqh7Ne6jm07r pVdqfcPZUetq8rKF0nMRVbytUG5OGw0z+vLVoLC0JknglVs9Rn/zfvHc4snsPlc5M9vi3A UQlP76VBz2lOLr0XpR20vlMFpQ23CMZ6eOrS5tQ07U7/R2UHdSITyScDHMKNfzIhE6U+BD vt/RbyhVaY3//exmqunxzq+2FdCaC1iHws+mWPjHv/N34yF14Wu6Jf5zYVO1HA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=GGs7k3yG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.27 X-Spam-Score: -1.27 X-Migadu-Queue-Id: D59C017F2E X-TUID: eQbsBXdxtPfl On 28/01/2023 01:15, Bruno Barbier wrote: > >>> If Message-ID still can be decoded from cb_thinderlink URIs than it >>> should be possible adapt orco to handle such links as well. > > I'm using plain Message-IDs to identify my emails, and, when choosing an > email client, that's really the first feature that I'm checking. > > In Thunderbird, in the cb_thunderlink config (v 1.6.0), I'm using a link format > that is compatible with the old thunderlink extension: > > [[email:$msgid$][$author_name$: $subject$ ($date_iso$)]] Notice that you can use mid:$msgid$ instead of email:$msgid$. thunderbird 'mid:tqr8et$mrc$1@ciao.gmane.io' opens the message in a new tab or a new window. Sometimes separate tab is inconvenient, but context menu has "show message in containing folder" item. ESR releases 91 and 102 support it out of the box. Whether thunderbird.desktop contains "x-scheme-handler/mid;" in the MimeType parameter (and so desktop-wide integration out of the box) depends on particular Linux distribution. For emacs it means that (browse-url "mid:tqr8et$mrc$1@ciao.gmane.io") should just work. > To open a message whose "Message-ID" is 'message-id', org just > requests my operating system to open a link like: > > (concat "thunderlink://messageid=" message-id) This approach can be used with "mid:" scheme for links in Org files as well. > It looks like thunderbird allows to search for Message-ID (see > headerMessageId): > > https://webextension-api.thunderbird.net/en/stable/messages.html#messages-query > > and there is no warning about using it. I'm guessing that cb_thunderlink > is using this. There was a lag between thunderbird-78 and some later version when there was no easy access to Message-ID header in add-on API. Likely it is a reason why cb_thunderlink has a warning that such links might be broken in future. I have not checked if standard API or custom low level code is currently used in cb_thuderlink for lookup by Message-ID. In orco standard messages.query() is used to search for Message-IDs extracted from links, e.g. https://list.orgmode.org/t7q766$m5k$1@ciao.gmane.io It is convenient to see message subject and date without leaving thunderbird. The main point of orco is opposite mapping. It makes possible to open in emacs the location in file that has link to current mail message.