From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Multiple SMTP accounts with smtpmail.el Date: Thu, 18 Aug 2011 11:19:45 +0800 Message-ID: References: <20039.8838.116211.694328@gargle.gargle.HOWL> <8762m0n5qi.fsf@red-bean.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313637607 16943 80.91.229.12 (18 Aug 2011 03:20:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2011 03:20:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 18 05:20:03 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 1Qtt9H-0002Sd-7c for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2011 05:20:03 +0200 Original-Received: from localhost ([::1]:43745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtt9G-0001FC-OR for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2011 23:20:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtt9E-0001Eu-1W for emacs-devel@gnu.org; Wed, 17 Aug 2011 23:20:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qtt9C-0005zO-V7 for emacs-devel@gnu.org; Wed, 17 Aug 2011 23:20:00 -0400 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:52180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qtt9C-0005z9-QR for emacs-devel@gnu.org; Wed, 17 Aug 2011 23:19:58 -0400 Original-Received: by pzk36 with SMTP id 36so2584701pzk.17 for ; Wed, 17 Aug 2011 20:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=ccoSacfimTA30VazQrrxFupKJ4qFnMNGCt5v088+XGE=; b=NVPyWo6vuLJOgo6lYFoxac8V1YlVvGl3bymqaexXLVjrM82Y4wcG6lY4h7OydVRF4d avqy2wcbiDQyTejbq54xYh5O9PfuJ6LCgYv9mPNpHnbAAGDPiTwhbwl037QGtpljK/cg FZqFNlOJ2IXnkvxS93sXkj7KKUvUhNFenkIP8= Original-Received: by 10.142.58.2 with SMTP id g2mr111221wfa.381.1313637597724; Wed, 17 Aug 2011 20:19:57 -0700 (PDT) Original-Received: from bogon ([58.22.114.122]) by mx.google.com with ESMTPS id v2sm1115193pbi.19.2011.08.17.20.19.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Aug 2011 20:19:56 -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/23.3.50 (Mac OS X 10.6.8) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.44 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:143392 Archived-At: On 2011-08-18 05:06 +0800, Lars Magne Ingebrigtsen wrote: [snipped 10 lines] > 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? > > `smtpmail-user' would be set from `message-send-hook' or the like, of > course. How about smtpmail-auth-spec (for the SPEC arg of auth-source-search)? Leo