From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10296 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.user Subject: Re: Automatically authenticating at local imap server Date: Mon, 04 Feb 2008 10:06:41 +0100 Message-ID: <87odaxqee6.fsf@member.fsf.org> References: <87k5lmidfy.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202116022 17242 80.91.229.12 (4 Feb 2008 09:07:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 09:07:02 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Feb 04 10:07:22 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JLxIP-0004CP-SS for gegu-info-gnus-english@m.gmane.org; Mon, 04 Feb 2008 10:07:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLxHx-0008JA-LM for gegu-info-gnus-english@m.gmane.org; Mon, 04 Feb 2008 04:06:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLxHw-0008I3-CM for info-gnus-english@gnu.org; Mon, 04 Feb 2008 04:06:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLxHu-0008HM-NP for info-gnus-english@gnu.org; Mon, 04 Feb 2008 04:06:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLxHu-0008HJ-JG for info-gnus-english@gnu.org; Mon, 04 Feb 2008 04:06:50 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JLxHv-0005bL-0k for info-gnus-english@gnu.org; Mon, 04 Feb 2008 04:06:51 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JLxHr-00061K-17 for info-gnus-english@gnu.org; Mon, 04 Feb 2008 09:06:47 +0000 Original-Received: from dslb-084-063-061-073.pools.arcor-ip.net ([84.63.61.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Feb 2008 09:06:47 +0000 Original-Received: from tassilo by dslb-084-063-061-073.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Feb 2008 09:06:47 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-061-073.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Mo8qShj1YjSzt4C8uKYrmIoMaG0= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10296 Archived-At: Reiner Steib writes: Hi Reiner, >> Everytime I start Gnus it asks me how to logon at the local IMAP >> server, but instead I want that it uses the username and password >> that are in my ~/.authinfo. >> >> Here's the Gnus side of the configuration: >> >> ,----[ ~/.gnus.el ] >> | (require 'nnir) >> | (add-to-list 'gnus-secondary-select-methods >> | '(nnimap "Fastmail" >> | (nnimap-address "localhost") >> | (nnimap-server-port 143) > > If you use a standard port, you can omit it here. I removed that line and edebugged the two functions and all worked as expected. In fact, exactly this line triggeres the bug. The problem is, that in my ~/.authinfo I specified the port as imap (or now I omit it) and on the gnus side I said 143. So `netrc-machine-user-or-password' is called with ports = ("143") and defaults = ("imap" "imaps") which won't find a match. I think the right fix would be to add "143" and "993" to the call of `netrc-machine-user-or-password' in `nnimap-open-connection', because these are the default ports for imap and imaps. Bye, Tassilo -- A morning without coffee is like something without something else.