[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prefer application on Gnome Desktop
From: |
Tim Landscheidt |
Subject: |
Re: prefer application on Gnome Desktop |
Date: |
Tue, 14 Jul 2009 10:12:11 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Teemu Likonen <tlikonen@iki.fi> wrote:
>> I have written a Bash script which parses mailto URLs and email headers'
>> possible RFC2047 quotations and then launches emacsclient to compose
>> mail.
> By the way, I originally made the script before I used Emacs and Gnus. I
> used it with Mutt first but later modified it to work with Emacs. For
> Emacs users it would be more elegant to have such URL parser inside
> Emacs so that the shell part would be something very simple like this:
> #!/bin/sh
> mailto=$(printf '%s\n' "$1" | sed -e 's/[\"]/\\&/g')
> elisp_expr=$(printf '(my-mailto-parser-compose "%s")' "$mailto")
> exec emacsclient -c -n --eval "$elisp_expression"
> Emacs already has some of the parser functions (RFC2047 at least) and
> it's in my mental TODO list to make this work mostly inside Emacs.
If anyone wants to work at this with Emacs 23, a much
"cleaner" (so probably not easier) integration approach
would be to use D-Bus. I don't know though what anchor
points there are in Gnome and KDE for this task.
Tim