Subject: RE: imap user id

From: "Everett, Marty" <[email-masked]>
Date: Tue, 4 Nov 1997 14:43:34 -0500

I found it but it does not seem to be complete. For example I know that
the {hostname/pop3}INBOX works for to getting pop mail but it is not in
the doc. Also how would you pass for exampe
{hostname/pop3/user=popuserid}INBOX.

Thanks Marty

	----------
	From:  Robin S. Socha[SMTP:[email-masked]]
	Sent:  Tuesday, November 04, 1997 2:29 PM
	To:  Pine Discussion Forum
	Subject:  Re: imap user id

	>> "EM" == Everett, Marty <[email-masked]> writes:

	EM> So How did you find this info? I did look at the doc and the
pine
	EM> web page? Would just like to know so I can read this set of
docs
	EM> also.

	I got it in:

	<http://franck.pc.uni-koeln.de/~robin/user.guide/node21.html>
	"Syntax for IMAP Folders and Collections"

	so it's on the pine site, too.

	Cheers,
	Robin

	-- 
	Robin S. Socha M.A.
	                             Linux is obsolete
	                             (Andrew Tanenbaum)

---

From: Mike Brudenell <[email-masked]>
Date: Wed, 5 Nov 1997 09:49:56 +0000 (GMT)

On Tue, 4 Nov 1997, Everett, Marty wrote:

> So How did you find this info? I did look at the doc and the pine web
> page? Would just like to know so I can read this set of docs also.

I think I originally learned of it either from this list, or else from
looking at the source code for the mtest program (part of the Pine
distribution used for testing IMAP connections).

It's mentioned briefly in the Release Notes screen for Pine 3.95 (which
we're still using for technical reasons); I don't know about 3.96.

Ideally, of course, a description of the "/user=username" flag should be
added to the information about valid folder names in the help for the
Folder List screen, along with....

On Tue, 4 Nov 1997, Everett, Marty wrote:

> This works great!!!!!! but I still have a long time out before it comes
> back and asked me for a password for the imapuserid password. Can I pass
> the password in some way or make it just prompt at start up and not have
> to wait for timeout.

...this one too.

When you use UNIX Pine to access a folder on an IMAP server specified
along these lines:

	{imap.your.site}INBOX		(with or without /user= etc)

Pine first tries to establish a "pre-authenticated connection" to the IMAP
server by giving the command:

	rsh imap.your.site /etc/rimapd

Assuming you have rsh access to your IMAP server machine *and* its
administrator has set up /etc/rimapd as a symbolic link to the real IMAP
server program this will get your connection established without your
needing to type in a username and password.  (The rsh mechanism handles
all the authentication information.)

However if you don't have rsh access, or the symbolic link hasn't been set
up, this can slow down the opening of the connection.  Indeed depending on
circumstances there may be a significant (several seconds) delay before
rsh times out.  Pine then falls back to connecting directly to the IMAP
server's port (143), but then requires you to type in your username and
password.

If you *know* that you don't have rsh access and/or the symbolic link
hasn't been set up then you can persuade Pine to not bother trying the
pre-authenticated connection attempt using rsh.  This can be done in
either of two ways:

Method 1 - Affects connections to *all* IMAP servers
----------------------------------------------------
Edit your $HOME/.pinerc file with your favourite editor (sorry, but
certainly as of version 3.95 this can't be done from within Pine; it
should really have been set up as a global setting by the administrator in
the systemwide Pine configuration file).  Look for the string
"rsh-open-timeout" and set this to 0 (zero).  As its comment says, this
turns off the rsh attempt, and affects all IMAP servers.

Method 2 - Affects *selected* IMAP servers
------------------------------------------
Change the host specification from:
	{imap.your.site}
to:
	{imap.your.site:143}
If your site runs the IMAP service on some port other than 143 use that
port number instead.  Because you are explicitly giving a port number, and
this is meaningless to rsh, Pine interprets this as an instruction not to
bother trying the rsh mechanism when accessing _this_ folder/collection of
folders.  Note that if you go this route you will probably have to make
the change in more then one place in the Setup Configuration screen, eg:
	inbox-path
	folder-collections
	incoming-folders	(if you are using this)

> {hostname/pop3/user=popuserid}INBOX.

I don't know for certain as we don't use POP3 here.  However I would
expect you to just compbine the flags as per your suggestion.

Cheers,

-- 
Mike Brudenell                                         <[email-masked]>
------------------------------------------------------------------------
The Computing Service, University of York, Heslington, York, YO1 5DD, UK
Tel: +44-1904-433811  FAX: +44-1904-433740  http://www.york.ac.uk/~pmb1/

* Unsolicited commercial e-mail is NOT welcome at this e-mail address. *