[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] org-mode and claws
From: |
Martin Butz |
Subject: |
[Orgmode] org-mode and claws |
Date: |
Wed, 13 Oct 2010 21:16:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18) Gecko/20081125 Thunderbird/2.0.0.18 Mnenhy/0.7.5.0 |
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/address@hidden/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 address@hidden
~~~~~~~~~~~~~~~~~~ www.sym.net | www.moodalis.de ~~~~~~~~~~~~~~~~
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] org-mode and claws,
Martin Butz <=