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: Manoj Srivastava
Subject: Re: Default of send-mail-function
Date: Tue, 08 Apr 2008 06:40:57 -0500
User-agent: Microsoft Gnus Express, Build 5.13 (5.13)

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?

        manoj
-- 
The difference between legal separation and divorce is that legal
separation gives the man time to hide his money.
Manoj Srivastava <address@hidden> <http://www.golden-gryphon.com/>  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C





reply via email to

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