From: Tassilo Horn <tassilo@member.fsf.org>
To: info-gnus-english@gnu.org
Cc: ding@gnus.org
Subject: Re: Automatically authenticating at local imap server
Date: Thu, 07 Feb 2008 10:57:01 +0100 [thread overview]
Message-ID: <87myqdrswi.fsf__6872.78751652247$1202378315$gmane$org@member.fsf.org> (raw)
In-Reply-To: <v9ir11sutt.fsf@marauder.physik.uni-ulm.de>
Reiner Steib <reinersteib+gmane@imap.cc> 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 <tassilo@member.fsf.org>
* 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
next prev parent reply other threads:[~2008-02-07 9:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-03 9:42 Tassilo Horn
2008-02-03 11:00 ` Reiner Steib
2008-02-04 9:06 ` Tassilo Horn
2008-02-06 20:17 ` Reiner Steib
2008-02-07 9:57 ` Tassilo Horn [this message]
[not found] <mailman.6898.1202031751.18990.info-gnus-english@gnu.org>
2008-02-03 20:29 ` Gour
2008-02-04 8:39 ` Tassilo Horn
2008-02-04 14:33 ` David
2008-02-04 19:40 ` Tassilo Horn
2008-02-04 22:22 ` David
2008-02-05 8:32 ` Tassilo Horn
2008-02-05 10:53 ` David
2008-02-05 12:16 ` Tassilo Horn
[not found] ` <mailman.6972.1202163783.18990.info-gnus-english@gnu.org>
2008-02-05 17:00 ` Ted Zlatanov
2008-02-05 21:58 ` David
2008-02-06 9:17 ` Tassilo Horn
2008-02-06 11:56 ` David
[not found] ` <mailman.7011.1202248745.18990.info-gnus-english@gnu.org>
2008-02-06 15:24 ` Ted Zlatanov
2008-02-06 20:07 ` David
[not found] ` <mailman.7050.1202328476.18990.info-gnus-english@gnu.org>
2008-02-15 22:35 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='87myqdrswi.fsf__6872.78751652247$1202378315$gmane$org@member.fsf.org' \
--to=tassilo@member.fsf.org \
--cc=ding@gnus.org \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).