Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Christoph Herzog <rhogez <at> gmail.com>
Subject: Re: Linking to Thunderbird (correction)
Newsgroups: gmane.emacs.orgmode
Date: Monday 10th December 2012 07:24:09 UTC (over 4 years ago)
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)
 
CD: 4ms