On Tue, 08 Apr 2008 09:24:57 +0100, Jason Rumney <address@hidden> said:
David De La Harpe Golden wrote:
On vaguely recent desktops following freedesktop.org , "xdg-email"
should be a command that will open and populate a new mail in the
user's "preferred email composer".
xdg-email --subject foo --body bar address@hidden
Emacs presumably could/should try to use that on gnu/linux...
http://portland.freedesktop.org/wiki/XdgUtils> http://portland.freedesktop.org/wiki/EmailConfig>
How about a new `unconfigured-send-it', for use as the default
send-mail-function', which checks for the existence of xdg-email, and
uses it if found. If not available, it could fall back on
sendmail-send-it'. Alternately we could modify `mailclient-send-it' to
use xdg-email when it exists rather than browse-url (which will only
work if browse-url-browser-function is set to an external program that
recognizes mailto: URLs).
I have xdg-email configured to use this as the preferred mail
client:
--8<---------------cut here---------------start------------->8---
emacsclient -s gnus -c \
-e "(progn (gnus-url-mailto \"$url\") (set-buffer-modified-p nil))"
--8<---------------cut here---------------end--------------->8---
Would your proposal not result in a loop?