* org-mode and claws
@ 2010-10-13 19:16 Martin Butz
0 siblings, 0 replies; only message in thread
From: Martin Butz @ 2010-10-13 19:16 UTC (permalink / raw)
To: emacs-orgmode
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 ~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-13 19:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 19:16 org-mode and claws Martin Butz
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).