From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10330 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.user Subject: Re: Automatically authenticating at local imap server Date: Thu, 07 Feb 2008 10:57:01 +0100 Message-ID: <87myqdrswi.fsf__6872.78751652247$1202378315$gmane$org@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 1202378287 2450 80.91.229.12 (7 Feb 2008 09:58:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Feb 2008 09:58:07 +0000 (UTC) Cc: ding@gnus.org To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Feb 07 10:58:28 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 1JN3WU-0008FX-0u for gegu-info-gnus-english@m.gmane.org; Thu, 07 Feb 2008 10:58:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JN3W1-0002kV-BI for gegu-info-gnus-english@m.gmane.org; Thu, 07 Feb 2008 04:57:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JN3VQ-0002FZ-NR for info-gnus-english@gnu.org; Thu, 07 Feb 2008 04:57:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JN3VL-0002At-Oj for info-gnus-english@gnu.org; Thu, 07 Feb 2008 04:57:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JN3VL-0002AU-Hg for info-gnus-english@gnu.org; Thu, 07 Feb 2008 04:57:15 -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 1JN3VK-000681-Q3 for info-gnus-english@gnu.org; Thu, 07 Feb 2008 04:57:15 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JN3VD-0000lr-TK for info-gnus-english@gnu.org; Thu, 07 Feb 2008 09:57:07 +0000 Original-Received: from dslb-084-063-008-181.pools.arcor-ip.net ([84.63.8.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 09:57:07 +0000 Original-Received: from tassilo by dslb-084-063-008-181.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 09:57:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-008-181.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:XLVQ6/X0r7vYZ6RU20OTvFaqIqg= 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:10330 Archived-At: 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