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: Opportunistic STARTTLS in smtpmail.el Date: Mon, 30 May 2011 19:45:18 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87d3kal0za.fsf@lifelogs.com> <874o5mky4o.fsf@lifelogs.com> <8762ptue8r.fsf@lifelogs.com> <87k4e8ucw3.fsf@lifelogs.com> <87liyofwxp.fsf@lifelogs.com> <874o5cfui5.fsf@lifelogs.com> <87liyndz5l.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306777540 7892 80.91.229.12 (30 May 2011 17:45:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 May 2011 17:45:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 30 19:45:36 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 1QR6X1-0008Gp-5M for ged-emacs-devel@m.gmane.org; Mon, 30 May 2011 19:45:35 +0200 Original-Received: from localhost ([::1]:52930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR6X0-0004za-P7 for ged-emacs-devel@m.gmane.org; Mon, 30 May 2011 13:45:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR6Wy-0004zU-DF for emacs-devel@gnu.org; Mon, 30 May 2011 13:45:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QR6Wx-000709-95 for emacs-devel@gnu.org; Mon, 30 May 2011 13:45:32 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR6Ww-000704-VS for emacs-devel@gnu.org; Mon, 30 May 2011 13:45:31 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QR6Wv-0008Cs-T8 for emacs-devel@gnu.org; Mon, 30 May 2011 19:45:29 +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 ; Mon, 30 May 2011 19:45:29 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 May 2011 19:45:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUIBANBLiAgFhC1o4sN CQhaRDL3FEQhAAACcklEQVQ4jV2TzXbiMAyFBcfsUcD7WHX2Q328dzLufmyj93+VuUpoZ1odyIH7 Wb9WKKWHakufltnjL4vQD2BMddqBAkzfyQG8Mo8fIL7A7X9dR+4HaP8cxh758Mie2bQ3e8BVE1IY eCCFh/bboouB3ES2A1gseCD22IuUaAChOI/JokiV1Fg51o0yZPby1oaFgHLfRCxHMzCJ1x3U0JbJ AdUXCGpgqlW2Usvmp0rvh8fQMfK91BrmQgsKphxMh4c+OTpoLbrA8EAVALc8rK3Fhr1WYYkolzH9 JeUx0BoG8X5pqhmds4HbyOjx4Wmk9w/0ODqp6aI31YSiCw5fMC0/CIOE5WaVxHzdtJ0Vd5iQ7V0k 5H4xx8e08uQgpxeQy5/rBe11PjE7j0m+QKTam4x7E8c83zJioYwHbTFK6pKebXZBypvmxoTi+xkX M/qS771Qd9XZZpFdc+T5lPqtb5GKuqkE3zCrNeU/Qqf0zB+txDk9uTiUQ7/oQ69ELnW0EqeuWgud p0IzXdKTpGhTr1PoS6qVzjES0QXZdbZ10h5A11rOuFqiU26rXnF8B/hGWmPdAY5dP3Txra+35z0I bdXA2YLcT7o0Dqu/BiwbmYeri0XnFmsJgecQZwDAcyG8RM+KKisxx4DiyQG4QkhZvc5lw2LwaTYN ofBZmbvXuwhjM7ZYIFcydsLUUC6OA8To9qh7XUji0TqGOnGcAXC8FLcDNqdmFw8PGNXqyLHaS3Is a9xspw0ABYUCC7YRm7w8YMFyymH1MLKAtCJCNTWatsUvj40/D37ZAdbW7Heh4r4Ajha3Nmxb+e6B d7egx4qtsTG4T/wXA3rVQ5QHL2YAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Jenny Hval's _Viscera_: "Milk of Marrow" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:c7trWwTEYj74zDBefVKPucf++HY= 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:139901 Archived-At: Ted Zlatanov writes: > Let the user choose. The query is: > > (auth-source-search :host "smtp.mail.hos" :port "smtp" :keyfile t :max 1) > > to find the first entry that has a keyfile and > > (auth-source-search :host "smtp.mail.hos" :port "smtp" :secret t :max 1) > > to find the first entry that has a secret. So these two lines: > > machine smtp.mail.hos port smtp keyfile xyz > machine smtp.mail.hos port smtp password mypass login myuser > > can be separated into a plain file and an encrypted file, or combined: I want this to be non-annoying for the typical user without the user having to do anything. :-) If the user has a ~/.authinfo.gpg file, then querying for the SMTP credentials (which 99.9% of people don't have) will require them to type a password, which is something that they didn't have to do before. So I want a way to ask auth-info "is there even something that vaguely applies to me here?" without having to type a password. Because I know that for almost everybody, there won't be anything there. But perhaps that can be an smtpmail.el configuration thing. But I'd hoped to avoid that, but perhaps that isn't in the cards. SMTP is kinda special amongst all the protocols, since all the other ones are pretty much guaranteed to need credentials, while SMTP rarely uses it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/