On 22/01/2023 15:32, Ihor Radchenko wrote:
Max Nikulin writes:

My notmuch allows me to click on the above link from inside the email.
As for Org links, [[notmuch:id:3218434.44cspzl...@linux.fritz.box]]
works the same via ol-notmuch.

We could support mid: is the corresponding url schema existed and
supported by various OSes.

Does emacs support query to desktop environment if specific URI schema is supported? Anyway it will increase load time. Instead list of types for `browse-url' may be converted into a user option, currently it is hard coded:

(dolist (scheme '("ftp" "http" "https" "mailto" "news"))
  (org-link-set-parameters scheme
                           :follow
                           (lambda (url arg)
                             (browse-url (concat scheme ":" url) arg))))

Currently I use

(with-eval-after-load 'ol
  (org-link-set-parameters
   "mid"
   :follow (lambda (url &optional arg)
             (browse-url (concat "mid:" url) arg))))

See Org FAQ https://orgmode.org/worg/org-faq.html#org1d563f2 "Can I create links to Thunderbirds emails?"

I suppose, notmuch may provide a function for "mid:" associatiopn in `browse-url-handler' and a .desktop file similar to

http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/emacsclient-mail.desktop

for handling mid: links from other applications.


Reply via email to