Gnus development mailing list
 help / color / mirror / Atom feed
* imaps, and .authinfo port name/number?
@ 2004-08-12 19:45 Steinar Bang
  2004-08-13  6:35 ` Simon Josefsson
  0 siblings, 1 reply; 9+ messages in thread
From: Steinar Bang @ 2004-08-12 19:45 UTC (permalink / raw)


What port name, or number should I use in the .authinfo file, for an
imaps server?

I have the following in gnus-secondary-select-methods:
        (nnimap "somemachine"
		(nnimap-address "somemachine.somecompany.com")
		(nnimap-stream ssl))

I have tried
  machine somemachine.somecompany.com login sb password secret port 993
and I have tried
  machine somemachine.somecompany.com login sb password secret port imaps

In both cases I'm prompted for both login name and password.

Thanx!


- Steinar




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imaps, and .authinfo port name/number?
  2004-08-12 19:45 imaps, and .authinfo port name/number? Steinar Bang
@ 2004-08-13  6:35 ` Simon Josefsson
  2004-08-13 16:33   ` Steinar Bang
  0 siblings, 1 reply; 9+ messages in thread
From: Simon Josefsson @ 2004-08-13  6:35 UTC (permalink / raw)


Steinar Bang <sb@dod.no> writes:

> What port name, or number should I use in the .authinfo file, for an
> imaps server?
>
> I have the following in gnus-secondary-select-methods:
>         (nnimap "somemachine"
> 		(nnimap-address "somemachine.somecompany.com")
> 		(nnimap-stream ssl))
>
> I have tried
>   machine somemachine.somecompany.com login sb password secret port 993
> and I have tried
>   machine somemachine.somecompany.com login sb password secret port imaps

"port imap"?




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imaps, and .authinfo port name/number?
  2004-08-13  6:35 ` Simon Josefsson
@ 2004-08-13 16:33   ` Steinar Bang
  2004-08-13 21:09     ` Simon Josefsson
  0 siblings, 1 reply; 9+ messages in thread
From: Steinar Bang @ 2004-08-13 16:33 UTC (permalink / raw)


>>>>> Simon Josefsson <jas@extundo.com>:

> Steinar Bang <sb@dod.no> writes:
>> What port name, or number should I use in the .authinfo file, for an
>> imaps server?
>> 
>> I have the following in gnus-secondary-select-methods:
>>         (nnimap "somemachine"
>> 		   (nnimap-address "somemachine.somecompany.com")
>> 		   (nnimap-stream ssl))
>> 

>> I have tried
>> 	machine somemachine.somecompany.com login sb password secret port 993
>> and I have tried
>> 	machine somemachine.somecompany.com login sb password secret port imaps

> "port imap"?

Huh?  That's the same as "port 143", innit?  But it did indeed
work... why?




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imaps, and .authinfo port name/number?
  2004-08-13 16:33   ` Steinar Bang
@ 2004-08-13 21:09     ` Simon Josefsson
  2004-08-14 20:12       ` Steinar Bang
  2004-08-16 17:43       ` Ted Zlatanov
  0 siblings, 2 replies; 9+ messages in thread
From: Simon Josefsson @ 2004-08-13 21:09 UTC (permalink / raw)


Steinar Bang <sb@dod.no> writes:

>>>>>> Simon Josefsson <jas@extundo.com>:
>
>> Steinar Bang <sb@dod.no> writes:
>>> What port name, or number should I use in the .authinfo file, for an
>>> imaps server?
>>> 
>>> I have the following in gnus-secondary-select-methods:
>>>         (nnimap "somemachine"
>>> 		   (nnimap-address "somemachine.somecompany.com")
>>> 		   (nnimap-stream ssl))
>>> 
>
>>> I have tried
>>> 	machine somemachine.somecompany.com login sb password secret port 993
>>> and I have tried
>>> 	machine somemachine.somecompany.com login sb password secret port imaps
>
>> "port imap"?
>
> Huh?  That's the same as "port 143", innit?  But it did indeed
> work... why?

The magic translation "SSL means port 993" happen inside imap.el, so
the netrc code in nnimap.el believe it will be using port 143.  I
suppose this isn't ideal, but changing things will likely be backwards
incompatible.  And as IMAPS is supposed to go away, I'd argue that the
Right Thing here is to use STARTTLS instead of IMAPS.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imaps, and .authinfo port name/number?
  2004-08-13 21:09     ` Simon Josefsson
@ 2004-08-14 20:12       ` Steinar Bang
  2004-08-14 22:39         ` Simon Josefsson
  2004-08-16 17:43       ` Ted Zlatanov
  1 sibling, 1 reply; 9+ messages in thread
From: Steinar Bang @ 2004-08-14 20:12 UTC (permalink / raw)


>>>>> Simon Josefsson <jas@extundo.com>:

> The magic translation "SSL means port 993" happen inside imap.el, so
> the netrc code in nnimap.el believe it will be using port 143.  I
> suppose this isn't ideal, but changing things will likely be
> backwards incompatible. 

OK.  A bit confusing though.  Perhaps the manual should mention it? 

Maybe something like the diff attached at the end of this message.?

> And as IMAPS is supposed to go away, I'd argue that the Right Thing
> here is to use STARTTLS instead of IMAPS.

Hey!  I only got around to using IMAPS instead of SSH port forwarding,
on Wednesday.  Now you're telling me it's obsolete? :-)


Index: texi/gnus.texi
===================================================================
RCS file: /usr/local/cvsroot/gnus/texi/gnus.texi,v
retrieving revision 7.52
diff -c -r7.52 gnus.texi
*** texi/gnus.texi	12 Aug 2004 06:28:47 -0000	7.52
--- texi/gnus.texi	14 Aug 2004 20:09:54 -0000
***************
*** 16369,16375 ****
  A file containing credentials used to log in on servers.  The format is
  (almost) the same as the @code{ftp} @file{~/.netrc} file.  See the
  variable @code{nntp-authinfo-file} for exact syntax; also see
! @ref{NNTP}.
  
  @item nnimap-need-unselect-to-notice-new-mail
  @vindex nnimap-need-unselect-to-notice-new-mail
--- 16369,16382 ----
  A file containing credentials used to log in on servers.  The format is
  (almost) the same as the @code{ftp} @file{~/.netrc} file.  See the
  variable @code{nntp-authinfo-file} for exact syntax; also see
! @ref{NNTP}.  An example of an .authinfo line for an IMAP server, is: 
! 
! @example
! machine students.uio.no login larsi password geheimnis port imap
! @end example
! 
! Note that it should be @code{port imap}, or @code{port 143}, even if
! the actual port number used is port 997 for secure imap.
  
  @item nnimap-need-unselect-to-notice-new-mail
  @vindex nnimap-need-unselect-to-notice-new-mail




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imaps, and .authinfo port name/number?
  2004-08-14 20:12       ` Steinar Bang
@ 2004-08-14 22:39         ` Simon Josefsson
  0 siblings, 0 replies; 9+ messages in thread
From: Simon Josefsson @ 2004-08-14 22:39 UTC (permalink / raw)


Steinar Bang <sb@dod.no> writes:

>>>>>> Simon Josefsson <jas@extundo.com>:
>
>> The magic translation "SSL means port 993" happen inside imap.el, so
>> the netrc code in nnimap.el believe it will be using port 143.  I
>> suppose this isn't ideal, but changing things will likely be
>> backwards incompatible. 
>
> OK.  A bit confusing though.  Perhaps the manual should mention it? 
>
> Maybe something like the diff attached at the end of this message.?

Good idea, I installed a hopefully improved version of the patch.

>> And as IMAPS is supposed to go away, I'd argue that the Right Thing
>> here is to use STARTTLS instead of IMAPS.
>
> Hey!  I only got around to using IMAPS instead of SSH port forwarding,
> on Wednesday.  Now you're telling me it's obsolete? :-)

It's called "progress", but yes. :-)

Thanks.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imaps, and .authinfo port name/number?
  2004-08-13 21:09     ` Simon Josefsson
  2004-08-14 20:12       ` Steinar Bang
@ 2004-08-16 17:43       ` Ted Zlatanov
  2004-08-16 21:36         ` Simon Josefsson
  1 sibling, 1 reply; 9+ messages in thread
From: Ted Zlatanov @ 2004-08-16 17:43 UTC (permalink / raw)
  Cc: ding

On Fri, 13 Aug 2004, jas@extundo.com wrote:

> The magic translation "SSL means port 993" happen inside imap.el, so
> the netrc code in nnimap.el believe it will be using port 143.  I
> suppose this isn't ideal, but changing things will likely be backwards
> incompatible.  And as IMAPS is supposed to go away, I'd argue that the
> Right Thing here is to use STARTTLS instead of IMAPS.

Maybe this patch will make things easier by just taking any 'imaps'
password and using it for 'imap' authentication (if the 'imap'
password is not given)?

Ted

Index: nnimap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
retrieving revision 7.6
diff -r7.6 nnimap.el
764c764,769
<                                    port "imap")))
---
>                                    port "imap")
>                     (netrc-machine list server port "imaps")
>                     (netrc-machine list
>                                    (or nnimap-server-address
>                                        nnimap-address)
>                                    port "imaps")))



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imaps, and .authinfo port name/number?
  2004-08-16 17:43       ` Ted Zlatanov
@ 2004-08-16 21:36         ` Simon Josefsson
  2004-08-17 14:05           ` Ted Zlatanov
  0 siblings, 1 reply; 9+ messages in thread
From: Simon Josefsson @ 2004-08-16 21:36 UTC (permalink / raw)


"Ted Zlatanov" <tzz@lifelogs.com> writes:

> On Fri, 13 Aug 2004, jas@extundo.com wrote:
>
>> The magic translation "SSL means port 993" happen inside imap.el, so
>> the netrc code in nnimap.el believe it will be using port 143.  I
>> suppose this isn't ideal, but changing things will likely be backwards
>> incompatible.  And as IMAPS is supposed to go away, I'd argue that the
>> Right Thing here is to use STARTTLS instead of IMAPS.
>
> Maybe this patch will make things easier by just taking any 'imaps'
> password and using it for 'imap' authentication (if the 'imap'
> password is not given)?

Yup.  Please install.  Could you update the manual too?

> Ted
>
> Index: nnimap.el
> ===================================================================
> RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
> retrieving revision 7.6
> diff -r7.6 nnimap.el
> 764c764,769
> <                                    port "imap")))
> ---
>>                                    port "imap")
>>                     (netrc-machine list server port "imaps")
>>                     (netrc-machine list
>>                                    (or nnimap-server-address
>>                                        nnimap-address)
>>                                    port "imaps")))




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: imaps, and .authinfo port name/number?
  2004-08-16 21:36         ` Simon Josefsson
@ 2004-08-17 14:05           ` Ted Zlatanov
  0 siblings, 0 replies; 9+ messages in thread
From: Ted Zlatanov @ 2004-08-17 14:05 UTC (permalink / raw)
  Cc: ding

On Mon, 16 Aug 2004, jas@extundo.com wrote:

> "Ted Zlatanov" <tzz@lifelogs.com> writes:
> 
>> On Fri, 13 Aug 2004, jas@extundo.com wrote:
>>
>>> The magic translation "SSL means port 993" happen inside imap.el, so
>>> the netrc code in nnimap.el believe it will be using port 143.  I
>>> suppose this isn't ideal, but changing things will likely be backwards
>>> incompatible.  And as IMAPS is supposed to go away, I'd argue that the
>>> Right Thing here is to use STARTTLS instead of IMAPS.
>>
>> Maybe this patch will make things easier by just taking any 'imaps'
>> password and using it for 'imap' authentication (if the 'imap'
>> password is not given)?
> 
> Yup.  Please install.  Could you update the manual too?

Done.

Ted



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-08-17 14:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-12 19:45 imaps, and .authinfo port name/number? Steinar Bang
2004-08-13  6:35 ` Simon Josefsson
2004-08-13 16:33   ` Steinar Bang
2004-08-13 21:09     ` Simon Josefsson
2004-08-14 20:12       ` Steinar Bang
2004-08-14 22:39         ` Simon Josefsson
2004-08-16 17:43       ` Ted Zlatanov
2004-08-16 21:36         ` Simon Josefsson
2004-08-17 14:05           ` Ted Zlatanov

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).