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.
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to