From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KEYDAsGq2mNWVgEAbAwnHQ (envelope-from ) for ; Wed, 01 Feb 2023 19:09:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +K7eAcGq2mMHegAAauVa8A (envelope-from ) for ; Wed, 01 Feb 2023 19:09:05 +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 A9718D6D8 for ; Wed, 1 Feb 2023 19:09:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNHWK-0008H2-Kg; Wed, 01 Feb 2023 13:07:44 -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 1pNHWJ-0008Gu-4y for emacs-orgmode@gnu.org; Wed, 01 Feb 2023 13:07:43 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNHWH-00007f-BW for emacs-orgmode@gnu.org; Wed, 01 Feb 2023 13:07:42 -0500 Received: by mail-wm1-x332.google.com with SMTP id j29-20020a05600c1c1d00b003dc52fed235so2138114wms.1 for ; Wed, 01 Feb 2023 10:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=85mSKc/bHXJmbMyh012JPMA0phAAGSegrUbQejBBUrc=; b=egugIjt+Z2EebBv68W/P3RKb7NVbNr3yR4odg/H3TCf41nwhLEd8z5rNhCojZQ7wr+ 7DhltmtrYuo3PKyIEeNQc2mbo10ZBb+JjPSivdrcSWgRBZG7ZNzHuktfq5u+zm7DhHtO eJZYsCIquy7qo+6ASGBmLk6FoF2tyku7+0D8WNkdQyb0m4QXgzyhBQrKsiOSxmq3HOXb DbKJkJu0I4GowValWdADbl6Je0y+WHbJGivl0vz0Z/AvFAQl4nWph7crAxljpZJu6x/9 4R4qRpWpX62UMiF0c8LlDrcfEIqx8Xd4sURloaFEl5PAUcpgR4vL4iUF3WiOYUsYYH/W c0Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=85mSKc/bHXJmbMyh012JPMA0phAAGSegrUbQejBBUrc=; b=q7WZfFBPTMUZ/gMaumr1LLNeDiWoGrVMMkJQu9gwa9xBxqiYzTeAHJqzZGFPXA+9KT 2+bxvCjAhj3FLnHd5Hdq0Ij4QFX7fKndEn0j40z8XnqezIbJ4gSxHA3sGxan10Ma6N2p GXuFmRZwS7bFCaQVFiSESyG9MAc4ki3hZWGYuRYmsyme0VLtL+Ru2VCRg7ydtAO0YI4r 93eEy8jMuFTStWtYvsXPAyhEgtUQkfZP8WE/suQkIDy5m2rgaKkak4oK64bV+NXa8bPn 09SjRgXF2aWYhaDgO3ksHyaex5Ggr0h4w66XCGRE3GMYixM99TFg9KWKlWL13gWFC4bN N/FA== X-Gm-Message-State: AO0yUKWj+xOMG6qcTgtLNWFTAjdjhttgQCathTDvJRsWPkIID1MRfPGm 8d2YTsuERIihgMjyQx3/saU= X-Google-Smtp-Source: AK7set91YDZ3IRuo1eThiTL6JGtKvE6/e/GpVJVdpj3xD/0TOp01No/gJAt4eZzZMNFnU8KR1ErLAw== X-Received: by 2002:a05:600c:468b:b0:3dc:486f:1552 with SMTP id p11-20020a05600c468b00b003dc486f1552mr2871757wmo.34.1675274859334; Wed, 01 Feb 2023 10:07:39 -0800 (PST) Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id f1-20020a1cc901000000b003df14531724sm1628768wmb.21.2023.02.01.10.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 10:07:38 -0800 (PST) Message-ID: <63daaa6a.1c0a0220.16ec9.65c2@mx.google.com> Received: by tosh-laptop (sSMTP sendmail emulation); Wed, 01 Feb 2023 19:16:30 +0100 From: Bruno Barbier To: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: PATCH for worg about cb_thunderlink (Re: Link from orgmode file to E-Mail (using kmail or notmuch)) In-Reply-To: <9011bf51-074e-6d3d-5e29-c0488f2c6c14@gmail.com> 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> <2d36ea04-4ad9-fcda-a09b-0f9600987ff9@gmail.com> <63d4db30.050a0220.3be9c.a1dc@mx.google.com> <69e4caf6-716d-373d-efb6-3d153f4a1253@gmail.com> <63d9704e.5d0a0220.c3c8c.b45c@mx.google.com> <9011bf51-074e-6d3d-5e29-c0488f2c6c14@gmail.com> Date: Wed, 01 Feb 2023 19:16:30 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, MSGID_FROM_MTA_HEADER=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675274943; a=rsa-sha256; cv=none; b=IsJof28DKshb9LF6DDVslQvncsQqC4hb/ZHXqFSy803OQuyGIc7oEnRG25VLKNDVWXaooR b3ZtTHKbebkJXk1aUyiosR2k4SHZSd5eEq3yfpsqkBi3UgV5kZEmO4nCkAsjDBtrqF0VEW T7fIL3CkX/J5uIRC49E9L2RixLym2AMopdaYZyQjv8YSVGnUoPsnQD1PyiqpkCVyDSmU73 a7nbzG/NayfpSmYaxjJGUMrkkRAcb7i0CAYDyza6IUssxuq8cFIFe/HuUE6iRtl2d8VtAU Bx26pt+IlNjGBF8sl/PXgx3rDp3ok4IwsN3pXNRnFtChKybRKZHdpPbfXyq/oA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=egugIjt+; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675274943; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=85mSKc/bHXJmbMyh012JPMA0phAAGSegrUbQejBBUrc=; b=ACOgq3SZ+K+me81jSJF9uHEypxYgWUIvb+8wpWTgFJnxT1IHNeQgc1+fgmgnerluc5N8J9 yTY9K4zKpjgxdR9tcN6AI89qiPrnsd9eeN0QmPtModHL6hrnhQzlTYOrv2N9WoJa2dIciO crEb/tngKFcQqNqDvumTUVlVjcTR812rwrNZRfDm2tsWOm53vSivB9l+ybn6ddZcYLr73C qRkgcME3IEYND7REmPHWA7KzsPUK88Kk5UsmApPR/PDVi4sLNLR3DiBy8Amb3ygjw+AXYQ xT4ExFwI+mmbFfbiKKXKtsSaADJy2Ai9Nqpp6wKCsHjIOXCR++//4BNkwKb4UQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=egugIjt+; 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"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.76 X-Spam-Score: -4.76 X-Migadu-Queue-Id: A9718D6D8 X-TUID: R9bFvBLTvR5B Max Nikulin writes: > On 01/02/2023 02:56, Bruno Barbier wrote: > Is it intentional that you and the linked page avoid cb_thunderlink page > on the official add-on site? > https://addons.thunderbird.net/en-us/thunderbird/addon/cb_thunderlink/ No. But visiting the author site being mandatory to install it, I thought it was simpler to point directly there. >> +To install the =cb_thunderlink=, see this web page: >> + >> + https://camiel.bouchier.be/en/cb_thunderlink/installation?with_menu=1 >> + >> +You need to install both the add-on and the OS integration. > > Often I prefer to see URL I am going to visit, however in this case I > would consider in-text link with description text hiding the address. ok. >> +#+begin_src elisp >> +(defvar cbthunderlink-app nil >> + "The full path where you've installed your cb_thunderlink application.") >> + >> +(defun cbthunderlink-open (message-id) >> + "Open the given email. MESSAGE-ID is the message id." >> + (start-process "cb_thunderlink" " *cb_thunderlink*" > --------------------------------------^ Yes. This is a buffer that is uninteresting to the user, see: (info "(elisp) Buffer Names") > is it intentional space? >> + cbthunderlink-app >> + (concat "thunderlink://messageid=" message-id))) >> +(org-add-link-type "mid" 'org-email-open) >> +#+end_src > > I am in doubts if `org-add-link-type' should be recommended since > > (make-obsolete 'org-add-link-type "use `org-link-set-parameters' > instead." "9.0") Oops. Right. I should change that, thanks (and use my new function name `cbthunderlink-open', not the old one `org-email-open'). > > I checked > https://camiel.bouchier.be/en/cb_thunderlink/installation/windows > https://camiel.bouchier.be/en/cb_thunderlink/installation/linux > in both cases it promises to register thunderlink:// and > cbthunderlink:// handlers. From my point of view it may be a reason to > take advantage of `browse-url' package. It should allow to avoid > explicit code to start process and to delegate the task to this package > and to handle mid: links by `goto-address-mode' in non-org buffers. That is what I first thought. But, I couldn't find an Emacs function that would pass that URL to the OS desktop, asking it to open the document. I'm not using `browse-url' (except for web pages) and I wasn't aware of `goto-address-mode'. > By the way, if cb_thunderlink is more convenient than built-in way to > handle mid: links in thunderbird then support of mid: URI protocol is a > valid feature request for cb_thunderlink. I'm not sure to understand. The `cb_thunderlink' add-on allow to build the link in one click from inside Thunderbird; that the part that I find really useful. And if Thunderbird is able to open an email from its "mid:" URL, the prefered method should probably be to install only the add-on inside Thunderbird, and use Thunderbird to reopen the "mid:" link. > > Let's wait several days, there is a chance that somebody else will add > more comments. ok. Thanks for your comments. Bruno