info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prefer application on Gnome Desktop


From: Teemu Likonen
Subject: Re: prefer application on Gnome Desktop
Date: Tue, 14 Jul 2009 11:05:47 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

On 2009-07-14 10:46 (+0300), Teemu Likonen 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]