emacs-devel
[Top][All Lists]
Advanced

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

Re: Outgoing mail defaults


From: Stefan Monnier
Subject: Re: Outgoing mail defaults
Date: Mon, 21 Mar 2011 10:20:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> How about this approach for first-time setup if people don't like the
> above, which avoids the "first found host" solution:

Yes, I'm not completely happy about this "first found" solution.

> 1) ask the user about the SMTP server name if `smtpmail-auth-source' is
> nil (the default)

> 2) ask the user if the server connection info should be saved through
> auth-source

I guess such a question might sound unclear to an unsuspecting user;
but if you phrase it as "do you need to use authentication" or something
like that, it would be fine.

> 3) if yes, do the auth-source creation prompts for user, port, and
> password

> 4) use Customize to save `smtpmail-host', `smtpmail-port', and
> `smtpmail-auth-source' to t or 'never according to (2).  From now on the
> user will either just use `smtpmail-host' and `smtpmail-port' or call
> `auth-source-search' with :host ,smtpmail-host and (if the port is not
> nil) :port ,smtpmail-port

Sounds OK.


        Stefan



reply via email to

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