Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: authinfo file and imap
Date: Tue, 28 Jun 2005 00:47:37 +0200	[thread overview]
Message-ID: <ilufyv31kom.fsf@latte.josefsson.org> (raw)
In-Reply-To: <plop87slz3h1bg.fsf@gnu-rox.org> (Xavier Maillard's message of "Tue, 28 Jun 2005 00:39:15 +0200")

Xavier Maillard <zedek@gnu-rox.org> 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"))))



  reply	other threads:[~2005-06-27 22:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-27 22:39 Xavier Maillard
2005-06-27 22:47 ` Simon Josefsson [this message]
2005-06-27 23:13 ` Matthieu Moy

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=ilufyv31kom.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /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).