emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: Bruno Barbier <brubar.cs@gmail.com>, emacs-orgmode@gnu.org
Subject: [PATCH] worg/org-faq.org: Recommend cb_thunderlink Thunderbird add-on
Date: Tue, 7 Feb 2023 22:08:06 +0700	[thread overview]
Message-ID: <2e607236-c8db-7cc2-c21c-94849b2527ff@gmail.com> (raw)
In-Reply-To: <63e0e89c.1c0a0220.a783d.12a7@mx.google.com>

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

On 06/02/2023 18:46, Bruno Barbier wrote:
> 
> After asking Thunderbird to register itself as the default mail
> application, "mid:" seems to be working from everywhere.

A have prepared an alternative patch. Let me know if have suggestions, 
objections, or if you prefer to proceed with another revision of your patch.

It seems you had no plan to polish your Org and system configuration to 
such degree.

[-- Attachment #2: 0001-org-faq.org-Recommend-cb_thunderlink-Thunderbird-add.patch --]
[-- Type: text/x-patch, Size: 4123 bytes --]

From a1b3a81bbc11fd2f55096cc2e29f97797b80b915 Mon Sep 17 00:00:00 2001
From: Max Nikulin <manikulin@gmail.com>
Date: Tue, 7 Feb 2023 21:49:06 +0700
Subject: [PATCH] org-faq.org: Recommend cb_thunderlink Thunderbird add-on

* org-faq.org (Thunderbird emails): Add CUSTOM_ID property to have
stable anchor during HTML export.  Recommend cb_thunderlink extension as a
means to generate mid: links and to handle existing thunderlink: ones.
Add a note that on Windows Thunderbird should register itself as a
handler of the mid: protocol.

Thanks to Bruno Barbier for discussion on the emacs-orgmode
mailing list.
---
 org-faq.org | 37 +++++++++++++++++++++++++++++--------
 1 file changed, 29 insertions(+), 8 deletions(-)

diff --git a/org-faq.org b/org-faq.org
index 0410d368..a7db75c1 100644
--- a/org-faq.org
+++ b/org-faq.org
@@ -1999,13 +1999,16 @@ ** Can I use CamelCase links?
 consult the [[https://orgmode.org/worg/org-contrib/org-wikinodes.html][documentation]].
 
 ** Can I create links to Thunderbirds emails?
+:PROPERTIES:
+:CUSTOM_ID: mid-url-handler
+:END:
 
 Thunderbird-91 and later versions support =mid:= URI scheme proposed
-many years ago, see
-[[https://www.rfc-editor.org/rfc/rfc2392.html][RFC 2392 - Content-ID and Message-ID Uniform Resource Locators]]
-for details.  To create a link you need to copy the value of the
-Message-ID header, it should be possible with some add-on.  As the
-last resort you may obtain the identifier by opening message source
+many years ago in
+[[https://www.rfc-editor.org/rfc/rfc2392.html][RFC 2392 - Content-ID and Message-ID Uniform Resource Locators]].
+To create a link you need to copy the value of the Message-ID header.
+It requires installing some add-on, see =cb_thunderlink= example below.
+As the last resort you may obtain the identifier by opening message source
 (=Ctrl+U=).  Message-ID resembles email address but has a unique
 string in the local (user) part.  Remove angle brackets and prepend
 the inner part with =mid:= to create a link.  A command to open the
@@ -2034,6 +2037,10 @@ ** Can I create links to Thunderbirds emails?
 [Default Applications]
 x-scheme-handler/mid=thunderbird.desktop;
 #+END_EXAMPLE
+On Windows ensure that Thunderbird is installed as default handler
+for URI protocols related to mail.  This approach allows to have
+uniform handler withing Emacs, including
+[[https://www.gnu.org/software/emacs/manual/html_node/emacs/Goto-Address-mode.html][~goto-address-mode~]].
 
 Instead of calling ~browse-url~ and setting up the scheme handler
 you may launch thunderbird directly.  It is a bit tricky in Emacs,
@@ -2044,12 +2051,26 @@ ** Can I create links to Thunderbirds emails?
 the link:
 : thunderbird -mail 'imap-message://USER_NAME%40gmail.com@imap.googlemail.com/INBOX?messageId=ka42mn$mn9$1@ger.gmane.org'
 
+There is
+[[https://addons.thunderbird.net/thunderbird/addon/cb_thunderlink/][=cb_thunderlink= Thunderbird add-on]]
+that allows to generate links accordingly to configurable template, e.g.
+: [[mid:$msgid$][$author_name$: $subject$ ($date_iso$)]]
+See the
+[[https://list.orgmode.org/63d01412.050a0220.9611.9c4d@mx.google.com/][discussion]]
+on the emacs-orgmode mailing list.
+Additionally the extension may open messages using =thunderlink:=
+and =cbthunderlink:= protocols however it requires installing
+of a helper application.  These URI schemes may be registered in Org
+just as it is suggested for =mid:= links above.
+
 The ThunderLink add-on recommended earlier did not work since
-transition of Thunderbird from XUL add-ons to WebExtensions,
+transition of Thunderbird-78 from XUL add-ons to WebExtensions,
 so the following recipe is obsolete:
 [[http://list.orgmode.org/ka42mn$mn9$1@ger.gmane.org][from Christoph Herzog: Re: Linking to Thunderbird (correction)]].
-Notice that this link uses Message-ID to reference a particular
-message as well.
+To open earlier created =thunderlink:= links either
+install =cb_thunderlink= add-on or add to ~browse-url-handlers~ alist
+a function that extracts Message-ID and passes it to =mid:= protocol
+handler.
 
 * Plain Lists
   :PROPERTIES:
-- 
2.25.1


  reply	other threads:[~2023-02-07 15:09 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <draft-87r0vhxg15.fsf@tosh-laptop.mail-host-address-is-not-set>
2023-01-21 21:32 ` Link from orgmode file to E-Mail (using kmail or notmuch) AW
2023-01-21 22:43   ` Gautier Ponsinet
2023-01-22  4:44   ` Max Nikulin
2023-01-22  8:32     ` Ihor Radchenko
2023-01-22  9:38       ` Jean Louis
2023-01-22 10:36       ` Max Nikulin
2023-01-22 18:47       ` AW
2023-01-23  6:19         ` Jean Louis
2023-01-23 10:40         ` Ihor Radchenko
2023-01-23 13:55           ` AW
2023-01-23 18:28             ` Jean Louis
2023-01-24  9:40             ` Ihor Radchenko
2023-01-24 10:42               ` Dirk-Jan C. Binnema
2023-01-24 11:17                 ` Ihor Radchenko
2023-01-24 17:08                   ` Dirk-Jan C. Binnema
2023-01-24 19:12                   ` Jean Louis
2023-01-26 10:01                 ` AW
2023-01-24 19:01               ` Jean Louis
2023-01-28 14:08                 ` [OT] email opens (was: Link from orgmode file to E-Mail (using kmail or notmuch)) Gregor Zattler
2023-01-28 18:26                   ` tomas
2023-01-29  4:37                   ` Jean Louis
2023-01-26  9:58               ` Link from orgmode file to E-Mail (using kmail or notmuch) AW
2023-01-26 10:16                 ` Ihor Radchenko
2023-01-26 11:43                 ` Max Nikulin
2023-01-26 12:18                 ` Jean Louis
2023-01-26 18:41                   ` AW
2023-01-23 11:46         ` Max Nikulin
2023-01-23 13:59           ` AW
2023-01-23 14:20             ` AW
2023-01-24  9:44             ` Ihor Radchenko
2023-01-24 16:11             ` Max Nikulin
2023-01-24 17:32               ` Bruno Barbier
2023-01-25 12:48                 ` Max Nikulin
2023-01-28  2:36                 ` Max Nikulin
2023-01-28  8:30                   ` Bruno Barbier
2023-01-28  8:30                     ` Max Nikulin
2023-01-31 19:56                       ` PATCH for worg about cb_thunderlink (Re: Link from orgmode file to E-Mail (using kmail or notmuch)) Bruno Barbier
2023-02-01 16:18                         ` Max Nikulin
2023-02-01 18:16                           ` Bruno Barbier
2023-02-02 14:47                             ` Max Nikulin
2023-02-02  6:04                               ` Bruno Barbier
2023-02-03 14:50                                 ` Max Nikulin
2023-02-03 15:42                                   ` Bruno Barbier
2023-02-04  4:59                                     ` Max Nikulin
2023-02-06 11:46                                       ` Bruno Barbier
2023-02-07 15:08                                         ` Max Nikulin [this message]
2023-02-07 18:26                                           ` [PATCH] worg/org-faq.org: Recommend cb_thunderlink Thunderbird add-on Bruno Barbier
2023-02-08 15:45                                             ` Max Nikulin
2023-01-23 18:37           ` Link from orgmode file to E-Mail (using kmail or notmuch) Jean Louis
2023-01-24 17:22             ` Max Nikulin
2023-01-24 17:49               ` Jean Louis
2023-01-25 15:31                 ` Max Nikulin
2023-01-25 16:48                   ` This is out of thread subject Jean Louis
2023-01-25 18:01                     ` Ihor Radchenko
2023-01-26  6:28                       ` Jean Louis
2023-01-27 11:23                         ` Ihor Radchenko
2023-01-27 11:51                       ` Firefox permission dialog and org-protocol Max Nikulin
2023-01-29 13:50                         ` Ihor Radchenko
2023-01-30  5:48                           ` Max Nikulin
2023-01-30 14:59                             ` [BUG] org-manual: Using bookmarklet for org-capture is no longer reliable (was: Firefox permission dialog and org-protocol) Ihor Radchenko
2023-01-31  8:11                               ` [BUG] org-manual: Using bookmarklet for org-capture is no longer reliable Charles Philip Chan
2023-01-31 12:20                                 ` Max Nikulin
2023-02-01 13:38                                   ` Ihor Radchenko
2023-02-02 14:09                                     ` Max Nikulin
2023-02-02 14:17                                       ` Ihor Radchenko
2023-02-02 15:02                                         ` Max Nikulin
2023-02-05  7:43                                 ` Max Nikulin
2023-02-05 10:26                                   ` Ihor Radchenko
2023-01-31  1:59                             ` Firefox permission dialog and org-protocol Samuel Wales
2023-01-26 16:19                 ` Link from orgmode file to E-Mail (using kmail or notmuch) Max Nikulin
2023-01-27  6:41                   ` Jean Louis
2023-01-27 15:19                     ` Max Nikulin
2023-01-29  4:18                       ` Jean Louis
2023-01-29  8:41                         ` Ihor Radchenko
2023-01-24 17:39             ` Bruno Barbier
2023-01-24 17:52               ` Jean Louis
2023-01-25 12:56                 ` [FR] Should Org provide commonly used link types? (was: Link from orgmode file to E-Mail (using kmail or notmuch)) Ihor Radchenko
2023-01-25 16:40                   ` Should Org provide commonly used link types? Jean Louis
2023-01-25 18:15                     ` Ihor Radchenko
2023-01-26  5:09                       ` Jean Louis
2023-01-26  6:11                       ` Jean Louis
2023-04-26 18:18                     ` jawatech
2023-01-24  9:42           ` Link from orgmode file to E-Mail (using kmail or notmuch) Ihor Radchenko
2023-01-24 15:49             ` Max Nikulin
2023-01-24 18:14               ` Jean Louis
2023-01-24 18:03             ` Jean Louis
2023-01-22  7:29   ` Jean Louis
2023-01-27 18:15 ` Bruno Barbier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2e607236-c8db-7cc2-c21c-94849b2527ff@gmail.com \
    --to=manikulin@gmail.com \
    --cc=brubar.cs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).