emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Linking to Thunderbird
@ 2012-12-07 23:41 Christoph Herzog
  2012-12-10  7:24 ` Linking to Thunderbird (correction) Christoph Herzog
  2012-12-13 22:58 ` Linking to Thunderbird Bastien
  0 siblings, 2 replies; 4+ messages in thread
From: Christoph Herzog @ 2012-12-07 23:41 UTC (permalink / raw)
  To: emacs-orgmode

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. :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-13 22:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-07 23:41 Linking to Thunderbird Christoph Herzog
2012-12-10  7:24 ` Linking to Thunderbird (correction) Christoph Herzog
2012-12-10 18:45   ` Matt Price
2012-12-13 22:58 ` Linking to Thunderbird Bastien

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).