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: Committing new smtpmail.el later tonight Date: Wed, 22 Jun 2011 22:38:31 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <8739jogwf9.fsf@lifelogs.com> <87lix9eknu.fsf_-_@lifelogs.com> <878vt52ykv.fsf@lifelogs.com> <878vt25tbf.fsf@lifelogs.com> <87zklbnet1.fsf@lifelogs.com> <83sjr2vaqk.fsf@gnu.org> <83pqm5vnww.fsf@gnu.org> <878vsthjlm.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308775150 20631 80.91.229.12 (22 Jun 2011 20:39:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2011 20:39:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 22 22:39:06 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 1QZUCW-0007EQ-17 for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2011 22:39:04 +0200 Original-Received: from localhost ([::1]:35926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZUCV-0003ox-81 for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2011 16:39:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZUCE-0003oS-9n for emacs-devel@gnu.org; Wed, 22 Jun 2011 16:38:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZUCC-0002Ax-Du for emacs-devel@gnu.org; Wed, 22 Jun 2011 16:38:46 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:47377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZUCB-0002Al-UY for emacs-devel@gnu.org; Wed, 22 Jun 2011 16:38:44 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QZUCA-000736-CK for emacs-devel@gnu.org; Wed, 22 Jun 2011 22:38:42 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 22:38:42 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2011 22:38:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 53 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEX+/v4DBASxsbLc3NwD AwMBAQEqKixUU1X29vcICAoCAgQAAAL///8BAQJ+fn8CAgJRZwaiAAABXUlEQVQ4jaXQv0vDQBQH 8IJrl9jWGhe1LhbEVZAsB8E1SzOfmyAdWgv1B7oWhCBWpVaFDh1d/AuE0ILccGTTQQgOigqWQCEZ 5VkjNe3l3iC+5Y773Pfe4xIcqcQ/wFlC4NBCYIUvyMFjF5oUthy3J4WKc13KhX2SQoIdbGet4flo D/7hlmRP5aufD5YMnKvbtrQ5P3JTcmCX03Lgm81ob4/CXkoKE2/17KIEWHkGQH2PQ+0GTPNxzYrB yxOFoEB6InTPAsiYQIoiOACuCVD4nXgIdwEd9DDJpJhY9QEoEF3VhEQ5Y1Lf8KFfSY5Bpx7QwAAw fLWlMS2C2n0/ndYJKIqiNqrFCPKzAAGAbqQ3PM8bScz731NRMvUsjFvzB/dpgexwAdjyrqLr+rk1 BnZIudxrY46LiZ9vaXEEThDonGLQxGA9XOwYdPeRBMOge4xBEQHbQmCsQkhigCb+BF9Xn17F3vXd 6AAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Pet Shop Boys's _The Most Incredible Thing (1)_: "The Grind" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:cinDSx3+6OHRD8CXn2uIh5xYfEE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:140880 Archived-At: Stefan Monnier writes: > So I think that we have two situations to handle: > - smtpmail-auth-credentials is set and auth-source can't find > credentials (i.e. the user hasn't migrated yet), so we should warn the > user about the need to migrate and give some pointer of how to do it. It could just ask "Update ~/.authinfo with SMTP credentials?" and write to the file, perhaps? > - smtpmail-auth-credentials is set and auth-source can also find credentials > (i.e. the user has migrated but still has the old setting). So we would prefer credentials from auth-source, which is OK. My worry is that the user would not necessarily be aware of this (unless we issue warnings), and would tinker with `smtpmail-auth-credentials' in ~/.emacs and not understand why the settings done there had any effect. After all, most users just google stuff, and 95% of the web pages that talk about this stuff will say "alter `smtpmail-auth-credentials'". And using that variable worked the first time Emacs 24 was used, but not after altering the second time. Seems like there would be plenty of possibilities to confuse the users here. And at some point, we'll have to drop the variable. I sort of feel that we're prolonging the agony instead of making it swift and brutal. :-) Perhaps. > Here we can output a warning about the duplicate info, but it's not > high-priority and should be discrete. After all, the user may use > such a config purposefully because she likes to share a single > config for different machines where she uses different versions of > Emacs. Yes. I'm not sure what would be the best way to do a discrete warning that would still be visible enough that the user would actually see it. If smtpmail.el just does (message "Warning: Conflicting values from `smtpmail-auth-credentials'; using ~/.authinfo instead") then that would, in virtually all cases, just be overwritten by the Sending...done message after sending it, so the user wouldn't see it... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/