From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: Multiple SMTP accounts with smtpmail.el Date: Thu, 18 Aug 2011 10:20:59 -0400 Message-ID: <87pqk2hkc4.fsf@kwarm.red-bean.com> References: <20039.8838.116211.694328@gargle.gargle.HOWL> <8762m0n5qi.fsf@red-bean.com> Reply-To: Karl Fogel NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313677278 1010 80.91.229.12 (18 Aug 2011 14:21:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2011 14:21:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 18 16:21:15 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 1Qu3T8-0007Dr-3N for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2011 16:21:14 +0200 Original-Received: from localhost ([::1]:42973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu3T7-0003le-K6 for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2011 10:21:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu3T2-0003lA-9w for emacs-devel@gnu.org; Thu, 18 Aug 2011 10:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qu3Sx-00011I-Di for emacs-devel@gnu.org; Thu, 18 Aug 2011 10:21:08 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:49523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qu3Sx-00011C-98 for emacs-devel@gnu.org; Thu, 18 Aug 2011 10:21:03 -0400 Original-Received: by vwm42 with SMTP id 42so1878972vwm.0 for ; Thu, 18 Aug 2011 07:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:subject:references:reply-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=uGSeLjVcs5/3Qt3MQhlekr8EPBR0W8mNMmsnkKkFaR8=; b=ELU8+5Fbpb1G6E6Yzyogq9H+H8AvXqA+NFyqGsR4bu7DKEA47PHr1juHZMDPEAKdqY hiKWZrAgLKZa/ykglyqYcOgbG8y35w5KTCVN2cUXcKqkEgW5mtFLdy0lHkhV55r0tlP2 rWbMu9oHZbGs8U9Dz8Ve1spAe6Uhu7mGWN364= Original-Received: by 10.52.23.225 with SMTP id p1mr786352vdf.186.1313677262806; Thu, 18 Aug 2011 07:21:02 -0700 (PDT) Original-Received: from kwarm.red-bean.com (topp148-office-nyc.openplans.org [67.221.177.15]) by mx.google.com with ESMTPS id l9sm115039vdv.38.2011.08.18.07.21.00 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Aug 2011 07:21:01 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 17 Aug 2011 23:06:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 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:143407 Archived-At: Lars Magne Ingebrigtsen writes: >I think it would be nice to find an auth-source based solution for the >multiple-account smtpmail case. Which shouldn't be difficult, I think. >How about just adding a `smtpmail-user' variable, that when bound or set >would make smtpmail.el feed that user name to auth-source, and then get >the correct credentials? I'm not expert enough in Emacs's smtp authn system to fully understand this proposal -- I don't know exactly what "auth-source" means here. It sounds like you mean something very specific by it? (If the variable is `smtpmail-user', then what variable(s) hold server/port/password information?) Overall, I'm just saying: There should be a purely in-elisp way to pass smtp authentication data when sending email. There should be no need to create or modify a file on disk containing authentication data (although such a file could certainly be an option, since it might be easier for some users). We used to have an entirely in-elisp way, but then it got removed. If the same way came back, that would be fine; if a different way were implemented, that would also be fine. As long as the NEWS file describes the situation accurately, people will eventually recover. I have a mild preference for the old way (`smtpmail-auth-credentials') just because it's familiar, but the emphasis is on "mild". -Karl