From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60493 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: authinfo file and imap Date: Tue, 28 Jun 2005 00:47:37 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119912131 8004 80.91.229.2 (27 Jun 2005 22:42:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 22:42:11 +0000 (UTC) Original-X-From: ding-owner+M9020@lists.math.uh.edu Tue Jun 28 00:42:10 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dn2IX-0002jI-9X for ding-account@gmane.org; Tue, 28 Jun 2005 00:41:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Dn2OW-0008GT-00; Mon, 27 Jun 2005 17:48:00 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dn2OS-0008GO-00 for ding@lists.math.uh.edu; Mon, 27 Jun 2005 17:47:56 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dn2OQ-0004Cw-ON for ding@lists.math.uh.edu; Mon, 27 Jun 2005 17:47:54 -0500 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dn2OP-0006Mq-00 for ; Tue, 28 Jun 2005 00:47:53 +0200 Original-Received: from latte.josefsson.org (c494102a.s-bi.bostream.se [217.215.27.65]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3) with ESMTP id j5RMlkxY031936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 28 Jun 2005 00:47:47 +0200 Original-To: ding@gnus.org OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:050627:ding@gnus.org::54ku7MeEgCcvOkHQ:8W5I In-Reply-To: (Xavier Maillard's message of "Tue, 28 Jun 2005 00:39:15 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=failed version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yxa-iv X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60493 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60493 Xavier Maillard writes: > Hello, > > I spent almost 2 hours to understand why I could not authenticate > myself on my IMAP server. The source of the problem was that I > didn't include the 'port 143' element on the IMAP line. > > Why is this mandatory for IMAP and not for other sources such as > NNTP ? That isn't intentional. Note the various invocations of netrc-machine-user-or-password with different default ports below. Perhaps you can edebug nnimap-open-connection (and ultimately n-m-u-o-p) to see why it isn't getting the proper account back. (let* ((list (progn (gnus-message 7 "Parsing authinfo file `%s'." nnimap-authinfo-file) (netrc-parse nnimap-authinfo-file))) (port (if nnimap-server-port (int-to-string nnimap-server-port) "imap")) (user (netrc-machine-user-or-password "login" list (list server (or nnimap-server-address nnimap-address)) (list port) (list "imap" "imaps"))) (passwd (netrc-machine-user-or-password "password" list (list server (or nnimap-server-address nnimap-address)) (list port) (list "imap" "imaps"))))