From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 QNEnOnPm3WOO5wAAbAwnHQ (envelope-from ) for ; Sat, 04 Feb 2023 06:00:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SNs5OXPm3WO3/wAAG6o9tA (envelope-from ) for ; Sat, 04 Feb 2023 06:00: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 A2CAFEE73 for ; Sat, 4 Feb 2023 06:00:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOAeZ-0007aE-Ut; Fri, 03 Feb 2023 23:59:56 -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 1pOAeY-0007a0-25 for emacs-orgmode@gnu.org; Fri, 03 Feb 2023 23:59:54 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOAeW-0004xl-El for emacs-orgmode@gnu.org; Fri, 03 Feb 2023 23:59:53 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pOAeS-00007p-Ry for emacs-orgmode@gnu.org; Sat, 04 Feb 2023 05:59:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: PATCH for worg about cb_thunderlink (Re: Link from orgmode file to E-Mail (using kmail or notmuch)) Date: Sat, 4 Feb 2023 11:59:41 +0700 Message-ID: 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> <63daaa6a.1c0a0220.16ec9.65c2@mx.google.com> <63dbfb46.5d0a0220.5c1cb.0653@mx.google.com> <78548f63-a535-b46d-5c97-6ae1320a8390@gmail.com> <63dd2b57.050a0220.ed66f.0117@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US In-Reply-To: <63dd2b57.050a0220.ed66f.0117@mx.google.com> 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: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.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.25, NICE_REPLY_A=-0.09, 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.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675486835; 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=lGRseUrKziVFYm8kbOpaIW2yCrDs2ZnYV3CGeAlTkzY=; b=NDMfKZ7RkwGvSk7RoS2YbCQdlPbINTyZxhl4yywewsokrjKgBJqHclyfXxNywsJMDHD6WY cf7fTSNuJ8aypO472B2vQMNLK9+eYSs4KBDo0RY/J7oXDOWqeZZn+7RB49+kEC1AzjOnr+ uvnZVAzsZcT/By1krHRsGTxZ88Azf2r++Ou7q84hoDUjqdjCC5mZ3j8hs9dLwRH+veOLCs oaQP/9mmhBAXnv1z0lAHInWirHiypYaMz9gEofoWhdU3UlXI/FVZ1nRCaoLU70eptCsPvP Vu+1B1Vo9WYYsTmzDiMwDWKfhaQsCvLmqxPbDR4/xmKZa+ao4sBdQu3AlYxHsA== 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+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=1675486835; a=rsa-sha256; cv=none; b=ETRO1bTwnfdoDHysKZizKI7iOCKlr2qabGYyoC9y09HXCBxpW68IL2zWlZguDD7OQPrKkW LQfLLPKsOU343jir4ku+/hbhmdET36cXdfm4YzZ/IEVlZYHgqxgyQxPZJHw3DP7xTmtX84 q9xW8ZMcZT5l1iNczIfo3QZvFl73eWGVcVQiW5nzZ/cxlEH2xrsRfpu8mW0RZAfHJjzkjE l/Zwbk8jFM6/I78cwcuPIkBtI+6pWFLZ/kIDduqqzUSLM3f4pLZInlyt4OYsyRWiEPQy4o J5W6Yj9JtNhWA0OIMV0rwPM7/NIT7FviK3/J2OhrQxQbbeulZedfJWYK0RgvXQ== X-Migadu-Queue-Id: A2CAFEE73 X-Migadu-Scanner: scn0.migadu.com 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+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-Spam-Score: 2.02 X-Spam-Score: 2.02 X-TUID: 81cMu+JEdczK On 03/02/2023 22:42, Bruno Barbier wrote: > Max Nikulin writes: >> (with-eval-after-load 'ol >> (org-link-set-parameters >> "mid" >> :follow (lambda (url &optional arg) >> (browse-url (concat "mid:" url) arg)))) >> >> Thunderbird opens mid: links in new message display tab or window. > Yes. If `browse-url' knows how to open Thunderbird (mine didn't). On windows I expect fallback to `browse-url-default-windows-browser` by default. Are you able to open mid: links from e.g. cmd.exe? open "mid:63dd2b57.050a0220.ed66f.0117@mx.google.com" Looking into https://bugzilla.mozilla.org/show_bug.cgi?id=1696218 "Thunderbird displays the dialog for default application after each startup" and the patch, I expect that thunderbird on windows can register protocol handler for the "mid" scheme. Unsure however if the following entries in advanced preferences are relevant: network.protocol-handler.expose.mid true network.protocol-handler.external.mid false I have never debugged protocol handlers on windows. I would compare "mailto" and "mid" entries in the registry https://stackoverflow.com/questions/80650/how-do-i-register-a-custom-url-protocol-in-windows > How do you think we should proceed to update the wiki ? I am trying to determine if it is difficult to get mid scheme working system-wide and emacs-wide on windows. If not, I would just add your example "[[mid:$msgid$][$author_name$: $subject$ ($date_iso$)]]" to the remark related to copying Message-ID in the existing text and corrected a bit a note on obsolete thunderlink. If thunderbird still has issues with registering global mid: handler then your snippet with `start-process' should be added. Maybe I just have gone too far trying to add "right" recommendation.