emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Linking to Thunderbird


From: Christoph Herzog
Subject: [O] Linking to Thunderbird
Date: Sat, 08 Dec 2012 00:41:11 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

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)


It works mostly except when Thunderbird is not running and for some emails whose id start with a number (but I have to check out).

I would be interested in feedback if someone improves the code above to make it right: I'm aware that, as I am not an Elisp programmer, the code above is probably not the way to do it. :-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]