From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 KBa9DheR2mM1fAAAbAwnHQ (envelope-from ) for ; Wed, 01 Feb 2023 17:19:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sHGxDheR2mOmfgEA9RJhRA (envelope-from ) for ; Wed, 01 Feb 2023 17:19:35 +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 EA07E93C4 for ; Wed, 1 Feb 2023 17:19:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNFol-0006Ev-EW; Wed, 01 Feb 2023 11:18:39 -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 1pNFoj-0006El-LK for emacs-orgmode@gnu.org; Wed, 01 Feb 2023 11:18:37 -0500 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNFoh-0001AJ-ND for emacs-orgmode@gnu.org; Wed, 01 Feb 2023 11:18:37 -0500 Received: by mail-pg1-x532.google.com with SMTP id f3so12879692pgc.2 for ; Wed, 01 Feb 2023 08:18:35 -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=xbGZkZVeI941XDD7o9clgEAO1qQ62QgPpYTtyPZsbzg=; b=ClsQ31sqCwjhZzVHSJUWDYFHMXw+Ncgp8uODIE9XYAMVkAFQF/jboHyb5ZxUkSF7u6 2rL9xaoVyC/jzrAvCGnFS4193eQLPM3oWyF0iGDelAXQ7B6o/RHmxCOhGC8gs4p/YgiK DuB2M4HAtOTRygjBn1geyOIuERZiSBuO4z1sWjMxd9pkdjyE2c8DUzzSTvC2YBZGYVnh xHgcwgNzRDSzs398nee0jST6HGKzNoyMGMhdC5Rylmeon89jzMd8cjRaOyTTGfp4kb2O WI9fi83QQ3XsNakMYqmCMtYTAGGoAl8GhWCbkEnG9bEnGZWPluUQO8KEWpo8Iwlcvrbz bA8g== 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=xbGZkZVeI941XDD7o9clgEAO1qQ62QgPpYTtyPZsbzg=; b=5ZeOfxzqkVmR6rqgeh+o/pXisPZH95Lf2qa8JbAQq83wyrkRsDPOAV1G3C5Oh0735i yPr2eU97GnrVOjKfeENZqWOkESXhFSy5qHLpaVeyKpHmo5h2GMcVUm/QIBGISoTfd9zy NRVwejPd26ZRzIMlAJqDwjnUOB9Ts4XkiKSbPhGhL07R0Ktxndop2Xk7UeCHn0XaeRUP DnUE5Bt8oDp+bY8vy7mctT8nqlrIfpoBqMs8ndENARRzEJGja+Rl2Yu1i/wmeVR/zkij tIeQiFRNoRPm2nQDXp8QsiAcj+L45fRWVfnI2JM8vMMeFVRDApglZQdla9nc6PyvvglO xvUQ== X-Gm-Message-State: AO0yUKV78mMghVzXEY+WUTaI0cYx7LqbVqq0mUXc5N2RUNidPlbRQY3V Yf62ahMJ4uifubmQjx0JRhMTUAASnyw= X-Google-Smtp-Source: AK7set8gt8xxf/pTRQRZ6lkPiSCjRe4XRJhNWbEzOZd1sio3hAaKssej+LUIiwy5VJfCq9ZesSuwBg== X-Received: by 2002:a05:6a00:1746:b0:592:5e96:e11b with SMTP id j6-20020a056a00174600b005925e96e11bmr3547401pfc.21.1675268314104; Wed, 01 Feb 2023 08:18:34 -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 q15-20020a056a00150f00b00593e84f2d08sm4154227pfu.52.2023.02.01.08.18.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Feb 2023 08:18:33 -0800 (PST) Message-ID: <9011bf51-074e-6d3d-5e29-c0488f2c6c14@gmail.com> Date: Wed, 1 Feb 2023 23:18:29 +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: PATCH for worg about cb_thunderlink (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> <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> From: Max Nikulin In-Reply-To: <63d9704e.5d0a0220.c3c8c.b45c@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::532; envelope-from=manikulin@gmail.com; helo=mail-pg1-x532.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.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=-0.09, 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=1675268375; 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=xbGZkZVeI941XDD7o9clgEAO1qQ62QgPpYTtyPZsbzg=; b=bJoRFrLXzB3SBtP9JHDbMx6KjzkZMRCVxivOHOpq5MRpKmjgiOHg7MeA6ReT3Sf8g4J6Eg aqyXcc4cAX+I2nCSnQpsFgxkjZz+DC1BeC8b0K7vobDuouFoVht9mqKRYU0Us488Ydbh4d ZOvzdWcaqYU9p5ZjPy26SqhbdFbQoGksPUUMvs6FOp1fO4sWl3D3jQCgQJaM8ue7P72GCy Z5puDhxbAs0npXm4pytSOzAN8JlnGgDf/XNW8Gb/LaM4Vje0uw/IVQMrFEnHQjvkxKT2cC j/o/ozB/UPjbdZWmlAs8Vw4OWXVOOnJhWJ6kpSM95R/11UU2j1h0mXE7OzVjQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ClsQ31sq; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675268375; a=rsa-sha256; cv=none; b=MySqCVsOes/Ew6qDF+xkOtI+SHxGajpOfA2Jb+xN60XOWaHPdPqYmVdxKllA0y7frfzg+Z jebt6qhXBiYXz0tF4QVmQbd28MVEfOmflKwzv5stNUeHBNojaS+8hgmyFxDJ87o043JLOZ U3RRImgQcg7Ei3k7IiUthns+VdWKGZaBXmSsiWBhUDOfII+SofNpRwZk9Auh8lOJpR2HOg i5Z2C4S5EHbY6oQPCCz5UBZpZ0IL2I/BWbLI6y4HHxL5sU5uBq9DpB1mkEzXcJzHNy1zhT g3uJFPAom8tCFD1ctk2oJiKf44y+vRkORiub6jsnFI4kK29xurTs9jtHTM4EiQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ClsQ31sq; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Spam-Score: -1.08 X-Migadu-Queue-Id: EA07E93C4 X-Migadu-Spam-Score: -1.08 X-TUID: 74xb5iHi/uD+ On 01/02/2023 02:56, Bruno Barbier wrote: > I've got an initial draft. It's not exactly what I'm using, as I tried > to make the configuration OS agnostic. And I'm using Thunderbird only > for accounts where I'm forced to use Win32 (else, I'm using notmuch). Thank you, Bruno. 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/ > +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. > +#+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*" --------------------------------------^ 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") 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. 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. Let's wait several days, there is a chance that somebody else will add more comments.