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: more on starttls, gnutls-cli and using tls for mail Date: Sun, 14 Aug 2011 01:42:47 -0400 Message-ID: <87ipq0k0q0.fsf@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 1313300583 19081 80.91.229.12 (14 Aug 2011 05:43:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2011 05:43:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 14 07:42:58 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 1QsTTO-0003Pz-M4 for ged-emacs-devel@m.gmane.org; Sun, 14 Aug 2011 07:42:58 +0200 Original-Received: from localhost ([::1]:41916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsTTO-0006pM-2J for ged-emacs-devel@m.gmane.org; Sun, 14 Aug 2011 01:42:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsTTK-0006pH-Uw for emacs-devel@gnu.org; Sun, 14 Aug 2011 01:42:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsTTJ-0004eZ-MC for emacs-devel@gnu.org; Sun, 14 Aug 2011 01:42:54 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:45713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsTTJ-0004eS-64 for emacs-devel@gnu.org; Sun, 14 Aug 2011 01:42:53 -0400 Original-Received: by vwm42 with SMTP id 42so4106253vwm.0 for ; Sat, 13 Aug 2011 22:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:reply-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=p9txe4HNhOYM1DoDuTFXLs+WCy3twBY1AA1bT4eMT3U=; b=cMMmykXb9VKKgAVH1aWr6RJf3AQr/qFWL/tZhGcTfyD2wAbU8Fagb/C/nA7dtvTSf1 aJ9DiVqIb/iWABSQ/SH5HuCFZjT06fm1tEOJ78txMRyvi7YnUN+XIJzqaoc9TuydSjc1 zTxYd4ji97SuYJRJjMiXtC3eWpSSefnnc7BOA= Original-Received: by 10.52.174.199 with SMTP id bu7mr2315852vdc.295.1313300570440; Sat, 13 Aug 2011 22:42:50 -0700 (PDT) Original-Received: from floss (cpe-66-65-49-129.nyc.res.rr.com [66.65.49.129]) by mx.google.com with ESMTPS id bp11sm2060135vcb.24.2011.08.13.22.42.48 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Aug 2011 22:42:49 -0700 (PDT) In-Reply-To: (Leo's message of "Sun, 14 Aug 2011 11:40:14 +0800") 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:143203 Archived-At: Leo writes: >I use smtpmail-auth-credentials to pass different user names for the >gmail smtps I am using. With the new smtpmail.el I haven't found a way >to do that. Yes, I'm in that situation too now -- which is why I think it's so unfortunate that `smtpmail-auth-credentials' went away :-(. I've found a way to do it, using the new smtpmail.el, but it's ugly. I have `message-send-hook' set up ~/.authinfo for every mail message, and then I remove the file afterwards in `message-sent-hook'. Search for "kf-set-up-authinfo" in [1] if you want the code. Naturally I hope we'll restore the lost functionality to smtpmail.el, so this kluge will become unnecessary! The ideal behavior, I think, would be to pay attention to ~/.authinfo when it is present, but fall back to trying `smtpmail-auth-credentials' when it's not. -Karl [1] http://svn.red-bean.com/repos/kfogel/trunk/.emacs