From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Butz Subject: org-mode and claws Date: Wed, 13 Oct 2010 21:16:15 +0200 Message-ID: <4CB6057F.3080808@sym.net> Reply-To: butz@sym.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=36917 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P66oL-0003oC-5Z for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 15:16:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P66oJ-0001d8-VA for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 15:16:25 -0400 Received: from sym.net ([212.227.83.185]:63672 helo=mail.sym.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P66oJ-0001cp-K1 for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 15:16:23 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello to All, I'm using org-mode since a couple of months. I would like to be able to link to emails from within org-files and I am wondering whether this is possible using claws-mail. I have googled a few hours but was only able to solve the problem partly based on a solution integrating mutt [1]. As I do not know very much about lisp - besides extending my .emacs with snippets I have collected over the time - my adaption is amateurish and - which is worse - does not work as desired. I added to my .emacs: -------------------------8<--------------------------------------------- (defun open-mail-in-claws (message) "Open a mail message in Claws. Message can be specified either by a path pointing inside a Maildir by Message-ID." (interactive "Message-ID: ") (shell-command (format "claws-mail --select \"%s<%s>\"" (substitute-in-file-name "$HOME/.claws-mail/imapcache/mail.sym.net/butz@sym.net/INBOX/")message))) ;; add support for "claws:ID" links (org-add-link-type "claws" 'open-mail-in-claws) -------------------------8<--------------------------------------------- The script has a major problem (besides some more or less grave restrictions): calling the open-mail-in-claws function makes the buffer from which I call the script unusable; probably because I do not call claws in the background (or whatever). Can anybody give a hint, how this could be done in a better way. Or has anybody a working solution to open mails in claws-mail from within org-mode? Thanks and cheers Martin [1] http://upsilon.cc/~zack/blog/posts/2010/02/integrating_Mutt_with_Org-mode/ -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sym.net || butz & siefer gbr || 50670 koeln || hansaring 78 phone +49(0)221/3762591 - twitter.com/symnet - mail butz@sym.net ~~~~~~~~~~~~~~~~~~ www.sym.net | www.moodalis.de ~~~~~~~~~~~~~~~~