Subject: No rsh when using remote Pine

From: [email-masked] (Ben Taylor)
Date: 27 Jun 1996 00:05:38 GMT

I am trying to get the syntax right for doing remote access such that:

pine does not attempt to do an rsh to the host to start /etc/rimapd,
with a predefined mail box.  I've got it working the other way, but
the rsh is bad news for later on. Suggestions on setting the
remote config appreciated.

Ben
[email-masked]

---

From: "Richard G. Roberto" <[email-masked]>
Date: Thu, 27 Jun 1996 07:55:35 -0400 (EDT)

> remote config appreciated.
Ben,

I believe there is no way for this to occur.  "rsh" uses the current uid
by default, which means /etc/rimapd will fetch the "inbox" for that user.
Putting an entry in /etc/services and /etc/ientd.conf for imapd at port
143 will allow you to not have to do the rsh to /etc/rimapd.  Then you can
remove /etc/rimapd to force using port 143.  This will force pine to
prompt you for a username and passwd.  Will this suffice?  The only other
thing I can think of would be to do something like:

incoming-folers=Mailbox1 {host.name}/path/to/mail1,
Mailbox2 {host.name}/path/to/mail2, etc

in your .pinerc file (assuming you have "enable-incoming-folders" set.
This should give you an incoming folder collection with:

INBOX	Mailbox1	Mailbox2	etc...

as selection choices.  INBOX will open the folder specified by the
"inbox-path=" value inyour .pinerc file and the others should try to open
the files specified above.  If /etc/rimapd is there, and your .rhosts file
is setup for no passwd access, _and_ you have rw access to the files
specified, you should be able to open them without entering a username and
passwd.  If these are not alternate "inboxes" then you can just include
them in the list of folder-collections in .pinerc and that works fine.

I have a .pinerc file setup to give me a choice of three different
"inboxes" (on three different systems).  I also have three different
folder-collections setup.  The first is the default for saving, but I can
save to the others by specifying which collection, a la:

folder to save to [saved-messages]:{work.machine}mail/project

etc.

I hope this helps.  If you get this working, please let me know what you
did.  I don't have time to play around with this stuff right now, but I'm
interested in doing it at some point.

Thanks

Richard G. Roberto
[email-masked]
201-739-2886 - whippany, nj

--
*******************************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, offer or
agreement or any information about any transaction, customer account or account
activity contained in this communication.
*******************************************************************************

---

From: Mike Brudenell <[email-masked]>
Date: Thu, 27 Jun 1996 13:45:55 +0100 (BST)

On Thu, 27 Jun 1996, Richard G. Roberto wrote:

> I believe there is no way for this to occur.  [SNIP!]

Not true (if I understand the question correctly)...

The usual sequence of events when opening a mail folder is:

1.  Pine tries "rsh"  to connect to the specified host end execute
    "/etc/rimapd".

2.  If this fails (eg, no permission to use rsh, /etc/rimapd not there,
    etc) Pine falls back to connecting to port 143 and then prompts for a
    username and password to be entered.

Step 1 *can* be bypassed by including the port number explicitly in the
host definition (by appending the host name with ":143") in your
configuration file (typically accessed through Pine's Setup Configuration
screen).

For example,

	{imap.myhost.mydomain:143}inbox

or whatever folder it is you are defining.

This is very useful for sites who haven't set up the /etc/rimapd link and
rsh to allow direct access (without having to type in a username and
password again) to their mail via Pine and IMAP.

[Disclaimer: the above certainly worked up to and including Pine 3.91.  I
hereby admit I haven't tried it with later versions, but would be
surprised if the behaviour was different.]

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/