Teemu Likonen <[email protected]> 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



_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to