On 5/28/25 17:29, Max Nikulin wrote:

and there's also an add-on (still working?) to add a button to easily
copy it.
https://addons.thunderbird.net/en-us/thunderbird/addon/copy-message-id/

I have checked it. Yes it is working on thunderbird 138.


(defun thunderblink-open (path _)
   (let ((clean-path (replace-regexp-in-string "[<>]" "" path)))
     (start-process "thunderbird" nil "thunderbird" (concat "mid:"
     clean-path))))

Spawning an external process is tricky in Emacs. I suspect some issues with the following scenario. No thunderbird is running, open link, quit from Emacs. If I do not confuse function then prompt to kill thunderbird should appear since it should be direct child of Emacs.
This is exactly what is happening. May be
(call-process "thunderbird" nil 0 nil (concat "mid:" path))
would be the solution to this?



Reply via email to