home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!att!att!dptg!ulysses!allegra!princeton!pupgg.princeton.edu!GROTH
- From: GROTH@pupgg.princeton.edu (Edward J. Groth 609-258-4361)
- Subject: Re: How to repeat "new Mail message" ?
- Message-ID: <1993Jan21.172432.23002@Princeton.EDU>
- Originator: news@nimaster
- Sender: news@Princeton.EDU (USENET News System)
- Nntp-Posting-Host: pupggg.princeton.edu
- Reply-To: groth@pupgg.princeton.edu
- Organization: Physics Department, Princeton University
- References: <1jm4nnINN59b@urmel.informatik.rwth-aachen.de>,<1993Jan21.141113.10529@engage.pko.dec.com>
- Date: Thu, 21 Jan 1993 17:24:32 GMT
- Lines: 55
-
- In article <1993Jan21.141113.10529@engage.pko.dec.com>, cantor@star.enet.dec.com (Dave Cantor) writes:
- >
- >
- >In article <1jm4nnINN59b@urmel.informatik.rwth-aachen.de>, jogl@merry.imib.rwth-aachen.de (Joachim Glaubrecht #Alwd#) writes...
- >>
- >> [...]
- >>
- >>because many VMS-Sysops clear the screen for a Mesage-Of-The-Day-Info,
- >>before the User can enter DCLs at the "$" prompt, i'd like to
- >>repeat this "Mail"-hint as the LAST Command in my LOGIN.COM.
- >>How can i do this ?
- >>
- >>so, in brief words:
- >>is there a procedure like "NEW_MAIL.COM" i can call, that repeats
- >> ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
- >>the 'You have 1 new Mail message.' message ?
- >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- >>ANY hint is wellcome ...
- >
- >Okay, here's a hint:
- >
- >You can write a PROGRAM that uses callable mail to get the new mail count
- >for the current user, and write a notice to SYS$OUTPUT. No privilege is
- >required for a user to retrieve information about his own mail profile, so
- >the program, so you can include it in your own login command file.
- >
- >The calls to callable mail are in the doc set somewhere.
- >
- >-- --
- > Dave C. cantor@star.enet.dec.com
- > Digital Equipment Corp., Nashua, NH 03062, USA
- > The views expressed herein are my own, except where attributed to
- > someone else. They are neither the opinion of, nor the responsibility
- > of, Digital Equipment Corporation.
-
-
- I think there's an easier way. If you put the following in
- login.com:
-
- $ mail
- $ some other DCL command
-
- then mail comes to life and, if you have new mail, it says "You
- have 1 new message" (for example) and then it exits because the
- next line is for DCL. If you have no new mail, it just exits.
-
- - Ed
-
-
- /----------------------------------------------------------------------\
- | Edward J. Groth | Phone: 609-258-4361 |
- | Physics Dept., Jadwin Hall | Fax: 609-258-1124 |
- | Princeton University | SPAN/HEPNET: PUPGG::GROTH=44117::GROTH |
- | Princeton, NJ 08544 | Internet: groth@pupgg.princeton.edu |
- \----------------------------------------------------------------------/
-