dav@NORTHSTAR.DARTMOUTH.EDU (William David Haas) (12/07/89)
At Dartmouth we have a campus wide mail service that is implimented via a socket on a UNIX host. I have written a program which goes to this host and retrieves the mail for a particular user and puts it in ~/Mailbox. Everything works and messages does correctly fetch the mail when AMS_MailCollectionCommand is set. Now, for the problem. The mail server is accessed by Macs and UNIX machines around campus. For security you must specify a user name and password when connecting and retrieving your mail. I maintain a resource file for each user that contains his password. The problem comes when I the user has changed his password from another host. I know that my password is out of date so I need to get a new password from the user. The PROBLEM: I don't have stdin. I have tried reopening stdin and I have tried getting a new stream. Neither worked. Under messages I can get by because I can fail and run the fetch program in an xterm (if they are running messages they are in a windowing environment). Under vui I am stuck. How can I regain stdin when running vui?