From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Herzog Subject: Linking to Thunderbird Date: Sat, 08 Dec 2012 00:41:11 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th7bD-0000X6-71 for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 18:44:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Th7bB-00031X-Vz for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 18:44:55 -0500 Received: from plane.gmane.org ([80.91.229.3]:55233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th7bB-00031T-Oo for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 18:44:53 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Th7bL-0006gw-G2 for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 00:45:03 +0100 Received: from p5dd7c398.dip.t-dialin.net ([93.215.195.152]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Dec 2012 00:45:03 +0100 Received: from rhogez by p5dd7c398.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Dec 2012 00:45:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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. :-)