On 12/08/2012 12:41 AM, Christoph Herzog wrote:
Today I discovered a really practical add-on for Thunderbird that solved
my problem of how to linking to a mail in Thunderbird:
https://addons.mozilla.org/de/thunderbird/addon/thunderlink/
(It requires some modification of the mimetypes on your system as
described in the documentation.)
Next, I set up a file org-thunderlink.el to register the link in orgmode.
The code is not more than this:
(require 'org)
(org-add-link-type "thunderlink" 'org-thunderlink-open)
(defun org-thunderlink-open (path)
"Opens a specified email in Thunderbird with the help of the add-on
ThunderLink."
;(message-box path)
(start-process "myname" nil "xdg-open" (concat "thunderlink:" path)))
(provide 'org-thunderlink)
The following code works much better:
(require 'org)
(org-add-link-type "thunderlink" 'org-thunderlink-open)
(defun org-thunderlink-open (path)
"Opens a specified email in Thunderbird with the help of the add-on
ThunderLink."
(start-process "myname" nil "thunderbird" "-thunderlink" (concat
"thunderlink:" path)))
(provide 'org-thunderlink)