From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66267 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: Automatically authenticating at local imap server Date: Thu, 07 Feb 2008 10:57:01 +0100 Message-ID: <87myqdrswi.fsf@member.fsf.org> References: <87k5lmidfy.fsf@member.fsf.org> <87odaxqee6.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 1202378269 2391 80.91.229.12 (7 Feb 2008 09:57:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Feb 2008 09:57:49 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M14758@lists.math.uh.edu Thu Feb 07 10:58:11 2008 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.50) id 1JN3WE-0008AW-0c for ding-account@gmane.org; Thu, 07 Feb 2008 10:58:10 +0100 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 1JN3VL-0003eB-9W; Thu, 07 Feb 2008 03:57:15 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JN3VJ-0003dq-DX for ding@lists.math.uh.edu; Thu, 07 Feb 2008 03:57:13 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JN3VD-00012b-3e for ding@lists.math.uh.edu; Thu, 07 Feb 2008 03:57:13 -0600 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JN3VF-0007Ah-00 for ; Thu, 07 Feb 2008 10:57:09 +0100 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id C56E78FCF7 for ; Thu, 7 Feb 2008 04:57:03 -0500 (EST) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 07 Feb 2008 04:57:03 -0500 X-Sasl-enc: 6qBUHkCtAOeeOi+5d1e1+terqGJFPjRXwiObU0lOYEyo 1202378222 Original-Received: from baldur (dslb-084-063-008-181.pools.arcor-ip.net [84.63.8.181]) by mail.messagingengine.com (Postfix) with ESMTP id 94352A21B for ; Thu, 7 Feb 2008 04:57:02 -0500 (EST) Original-Newsgroups: gmane.emacs.gnus.user User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:XLVQ6/X0r7vYZ6RU20OTvFaqIqg= Mail-Followup-To: ding@gnus.org In-Reply-To: (Reiner Steib's message of "Wed, 06 Feb 2008 21:17:50 +0100") Posted-To: gmane.emacs.gnus.user X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66267 Archived-At: The following message is a courtesy copy of an article that has been posted to gmane.emacs.gnus.user as well. Reiner Steib writes: Hi Reiner, > On Mon, Feb 04 2008, Tassilo Horn wrote: > >> 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. > > Would you like to submit a patch? (Please send it to ding@gnu.org) Sure, so here it is. --8<---------------cut here---------------start------------->8--- Index: lisp/nnimap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v retrieving revision 7.41 diff -u -r7.41 nnimap.el --- lisp/nnimap.el 20 Jan 2008 05:23:57 -0000 7.41 +++ lisp/nnimap.el 7 Feb 2008 09:55:03 -0000 @@ -802,7 +802,7 @@ (or nnimap-server-address nnimap-address)) (list port) - (list "imap" "imaps"))) + (list "imap" "imaps" "143" "993"))) (passwd (netrc-machine-user-or-password "password" list @@ -810,7 +810,7 @@ (or nnimap-server-address nnimap-address)) (list port) - (list "imap" "imaps")))) + (list "imap" "imaps" "143" "993")))) (if (imap-authenticate user passwd nnimap-server-buffer) (prog2 (setq nnimap-server-buffer-alist --8<---------------cut here---------------end--------------->8--- And here's a ChangeLog entry. --8<---------------cut here---------------start------------->8--- 2008-02-07 Tassilo Horn * nnimap.el (nnimap-open-connection): Add "143" and "993" as default ports to the calls to `netrc-machine-user-or-password' in addition to "imap" and "imaps". --8<---------------cut here---------------end--------------->8--- Bye, Tassilo