emacs-devel
[Top][All Lists]
Advanced

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

Re: Default of send-mail-function


From: Jason Rumney
Subject: Re: Default of send-mail-function
Date: Tue, 08 Apr 2008 12:50:49 +0100
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

Manoj Srivastava wrote:
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?

Yes, that can currently happen with the default on Windows and Mac too. But the fact that obviously experienced users who have set Emacs as their default mail client end up with a loop if they don't change the default configuration should not prevent us from making a change that benefits less experienced users who currently experience a broken mail configuration and may not have the knowledge to configure their way out of it.





reply via email to

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