From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: `send-mail-function' default change Date: Wed, 06 Jul 2011 19:36:10 +0200 Message-ID: References: <83box7pbg2.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309979576 12479 80.91.229.12 (6 Jul 2011 19:12:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 19:12:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 21:12:52 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QeXWl-000467-5m for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2011 21:12:51 +0200 Original-Received: from localhost ([::1]:56444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeXWj-0005T6-Nf for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2011 15:12:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeW1P-0004JC-1D for emacs-devel@gnu.org; Wed, 06 Jul 2011 13:36:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeW1M-0001Rf-Mn for emacs-devel@gnu.org; Wed, 06 Jul 2011 13:36:22 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:53039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeW1M-0001Ra-D6; Wed, 06 Jul 2011 13:36:20 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QeW1G-0007jg-0K; Wed, 06 Jul 2011 19:36:14 +0200 In-Reply-To: <83box7pbg2.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 06 Jul 2011 20:26:37 +0300") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Anna =?iso-8859-1?Q?J=E4rvinen's?= _Man var bland molnen_: "Sosial kompetens" X-Hashcash: 1:23:110706:emacs-devel@gnu.org::K80rF1Ukkz11Gs6z:00000000000000000000000000000000000000000006Av X-Hashcash: 1:23:110706:eliz@gnu.org::NaVCv+t0JtHqYrIh:000001kxB X-MailScanner-ID: 1QeW1G-0007jg-0K MailScanner-NULL-Check: 1310578574.15046@PVZ4ecdBpeiuqL4lOuIPXw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141669 Archived-At: Eli Zaretskii writes: > Please add to NEWS a detailed description of how to move the old > smtpmail setup to the brave new world. [...] > I think my setup is very similar of =D3scar's, btw. I have the > following variables defined: > > smtpmail-smtp-server > smtpmail-smtp-service > smtpmail-auth-credentials > > The latter defines my username and password for logging into my ISP's > SMTP server. I don't currently use STATTLS. Ok, perhaps we can work out a text here? --------------- ** smtpmail has been largely rewritten to upgrade to STARTTLS if possible, and uses the auth-source framework for getting credentials. The rewrite should be largely compatible with previous versions of smtpmail, but there are two major incompatibilities: ** `smtpmail-auth-credentials' no longer exists. That variable used to be be either ~/.authinfo (in which case you're fine -- you won't see any difference), but if it were a direct list of user names and passwords, you will be prompted for the user name and the password instead, and they will then be saved to ~/.authinfo. If you wish to copy over all the credentials from `smtpmail-auth-credentials' to your ~/.authinfo file manually, instead of letting smtpmail prompt you for these values, that's also possible. If you had, for instance, (setq smtpmail-auth-credentials '(("mail.example.org" 25 "jim" "s!cret"))) then the equivalent line in ~/.authinfo would be machine mail.example.org port 25 login jim password s!cret ** Similarly, `smtpmail-starttls-credentials' no longer exists. If you had thet set, then then you need to put machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp= _tls.cert" in your ~/.authinfo file instead. --------------- Would that do? But it strikes me here that perhaps there should just be a function like `M-x smtpmail-save-old-credentials' that would do this for you. It would be utterly trivial to write. :-) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/