From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71992 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-sources: 8 password prompts for accessing one single imap server Date: Mon, 27 Sep 2010 18:54:23 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87ocbkujwr.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285606519 26356 80.91.229.12 (27 Sep 2010 16:55:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 16:55:19 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20365@lists.math.uh.edu Mon Sep 27 18:55:17 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P0Gyz-00050s-2Y for ding-account@gmane.org; Mon, 27 Sep 2010 18:55:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P0Gyt-0001fL-W7; Mon, 27 Sep 2010 11:55:12 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P0Gyr-0001ex-Uj for ding@lists.math.uh.edu; Mon, 27 Sep 2010 11:55:09 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P0Gyn-0006Wj-Kg for ding@lists.math.uh.edu; Mon, 27 Sep 2010 11:55:09 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P0Gym-0005T6-00 for ; Mon, 27 Sep 2010 18:55:04 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P0Gym-0004vE-Ok for ding@gnus.org; Mon, 27 Sep 2010 18:55:04 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2010 18:55:04 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2010 18:55:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEVzXTz39e/Io1DDvLHw 7+z9/fz9/vuek4OFdVOUg2X7+/j////+//7b29v+/v1TPxMj5kbSAAAA6klEQVQ4jWPI240V7GJA sLeiyDDsxgHoLLFvIC2ng8S+m/wfTLFJeNaam/ffxpTYUj6jvPgyL6bE5grT008fG0RjSIj37t69 d8JlawyJG9a7N0/iL8aUqIx+rKT/vxZDYk/54ial//9LMHVYMinp8/8vuY0hYT4DqIOhF1PC/bpl k/5/XkyJx3bCFZP4a19jSGwteb125gQrTJ/vXm567u0VbywS+y4bF6/ejUVi9+5zp3djl0ABw1/i NS4JrKL7cBu1D4fEvkSGaBSB17vf7XsHBFnCDH7v0kAga9WqhYIigoKOgiAg4nIDAH/BJ3mpJV9H AAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Split's _Four Tet & Mala_: "Four Tet - Nothing To See" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:J69JLEnrgI1xYkjSHWj+Uhjst8Q= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71992 Archived-At: Tassilo Horn writes: > As you can see, 1) it queries for a password for each possible imap port > or port name. And 2), for each of those, I have to type my password 2 > times. Ah, I get it. I mean, it loops over the different port combinations, and it gets both user name and password. And the reason you get prompted so many times is that it all ends up being queried from netrc.el, which is very simple: You ask it for a user name and a password, based on a machine/port specification. So to avoid all these queries, we'd have to bypass auth-sources altogether, or have netrc.el cache the data. Or alter auth-sources so that it takes a list of ports to scan, and calls netrc-credentials with that list. I think the latter makes more sense. Will it break any other packages if I alter the function signatures in auth-sources.el to take a list of ports? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen