Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!YALE.ARPA!LEICHTER-JERRY From: LEICHTER-JERRY@YALE.ARPA.UUCP Newsgroups: mod.computers.vax Subject: Re: Message-ID: <8702260214.AA14299@ucbvax.Berkeley.EDU> Date: Wed, 25-Feb-87 21:15:19 EST Article-I.D.: ucbvax.8702260214.AA14299 Posted: Wed Feb 25 21:15:19 1987 Date-Received: Sat, 28-Feb-87 00:06:20 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Distribution: world Organization: The ARPA Internet Lines: 29 Approved: info-vax@sri-kl.arpa Can anybody help. Say a user log's in and he gets the message that there is new mail. This is fine but I have a global login file which sets the terminal up (because we have some big teks) sets the dialog area ect.. bt esc codes. Is there anyway in dcl to at a latter dat redisplay the initial message at login. At the moment i have a delay at the begining of the login file so the user has a chance to look. Its a pain in the neck because if somebodys password has expired they dont notice. Ta. The information about new mail is stored in the file SYS$SYSTEM:VMSMAIL.DAT; have a look at SYS$EXAMPLES:MAILUAF.COM for an idea of the format. You would need to write a privileged (SYSPRV) program to read the file, however. A quick hack that does the same thing - though unfortunately not as fast as you might like - is to just include the lines: $ MAIL EXIT in the command file at the appropriate point. MAIL will start up, print its usual "You have nnn messages" message, try to read from SYS$INPUT (the command file), and promptly exit. The password expiration information is in the UAF, and can be read with $GETUAF. Unfortunately, there is no DCL interface to $GETUAF - you'd have to write a program to do it. -- Jerry -------