From 4beb7ee307544be868a0d058763aa61558f0701b Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Tue, 31 Jan 2023 20:33:22 +0100 Subject: [PATCH] org-faq: links with thunderbird: Add cb_thunderlink --- org-faq.org | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/org-faq.org b/org-faq.org index 0410d368..1aaa3f2a 100644 --- a/org-faq.org +++ b/org-faq.org @@ -2051,6 +2051,54 @@ so the following recipe is obsolete: Notice that this link uses Message-ID to reference a particular message as well. +*** Using the =cb_thunderlink= add-on +The add-on =cb_thunderlink= for Thunderbird allows: + 1. to generate direct links from emails inside Thunderbird, + 2. and to reopen the emails following these links. + +**** Installation +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. + +Once everything is installed, follow the steps below to make org +compatible links in Thunderbird, and to teach org how to open these +links. + +**** Copying links from Thunderbird +In Thunderbird, open the =Options= page for the =cb_thunderlink= add-on +and add a new link type named =org= in the =Configurable links= section. + +#+begin_example +[[mid:$msgid$][$author_name$: $subject$ ($date_iso$)]] +#+end_example + +To get an org link for a given email, open the contextual menu, click +the =cb_thunderlink= entry and choose the entry named =org=. This +copies, into the clipboard, a link to this email; you can then paste +it in Emacs. + + +**** Opening the emails from Emacs +To teach org how to open these links, add the following lines in +your configuration file, configuring the variable +=cbthunderlink-app= to match your system. + +#+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*" + cbthunderlink-app + (concat "thunderlink://messageid=" message-id))) +(org-add-link-type "mid" 'org-email-open) +#+end_src + + * Plain Lists :PROPERTIES: :CUSTOM_ID: Plain-Lists -- 2.39.1