home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21816 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.8 KB  |  70 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!att!att!dptg!ulysses!allegra!princeton!pupgg.princeton.edu!GROTH
  3. From: GROTH@pupgg.princeton.edu (Edward J. Groth   609-258-4361)
  4. Subject: Re: How to repeat "new Mail message" ?
  5. Message-ID: <1993Jan21.172432.23002@Princeton.EDU>
  6. Originator: news@nimaster
  7. Sender: news@Princeton.EDU (USENET News System)
  8. Nntp-Posting-Host: pupggg.princeton.edu
  9. Reply-To: groth@pupgg.princeton.edu
  10. Organization: Physics Department, Princeton University
  11. References: <1jm4nnINN59b@urmel.informatik.rwth-aachen.de>,<1993Jan21.141113.10529@engage.pko.dec.com>
  12. Date: Thu, 21 Jan 1993 17:24:32 GMT
  13. Lines: 55
  14.  
  15. In article <1993Jan21.141113.10529@engage.pko.dec.com>, cantor@star.enet.dec.com (Dave Cantor) writes:
  16. >
  17. >
  18. >In article <1jm4nnINN59b@urmel.informatik.rwth-aachen.de>, jogl@merry.imib.rwth-aachen.de (Joachim Glaubrecht  #Alwd#) writes...
  19. >> 
  20. >> [...]
  21. >> 
  22. >>because many VMS-Sysops clear the screen for a Mesage-Of-The-Day-Info,
  23. >>before the User can enter DCLs at the "$" prompt, i'd like to
  24. >>repeat this "Mail"-hint as the LAST Command in my LOGIN.COM.
  25. >>How can i do this ?
  26. >> 
  27. >>so, in brief words:
  28. >>is there a procedure like "NEW_MAIL.COM" i can call, that repeats
  29. >>        ~~~~~~~~~~~~~                               ~~~~~~~~~~~~~~
  30. >>the 'You have 1 new Mail message.' message ?
  31. >>    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. >>ANY hint is wellcome ...
  33. >
  34. >Okay, here's a hint:
  35. >
  36. >You can write a PROGRAM that uses callable mail to get the new mail count
  37. >for the current user, and write a notice to SYS$OUTPUT.  No privilege is
  38. >required for a user to retrieve information about his own mail profile, so
  39. >the program, so you can include it in your own login command file.
  40. >
  41. >The calls to callable mail are in the doc set somewhere.
  42. >
  43. >-- --
  44. > Dave C.                          cantor@star.enet.dec.com
  45. > Digital Equipment Corp., Nashua, NH  03062, USA
  46. >  The views expressed herein are my own, except where attributed to 
  47. >  someone else.  They are neither the opinion of, nor the responsibility 
  48. >  of, Digital Equipment Corporation.
  49.  
  50.  
  51. I think there's an easier way.  If you put the following in
  52. login.com:
  53.  
  54. $ mail
  55. $ some other DCL command
  56.  
  57. then mail comes to life and, if you have new mail, it says "You
  58. have 1 new message" (for example) and then it exits because the
  59. next line is for DCL.  If you have no new mail, it just exits.
  60.  
  61.                         - Ed
  62.  
  63.  
  64. /----------------------------------------------------------------------\
  65. | Edward J. Groth            | Phone: 609-258-4361                     |
  66. | Physics Dept., Jadwin Hall | Fax:   609-258-1124                     |
  67. | Princeton University       | SPAN/HEPNET:  PUPGG::GROTH=44117::GROTH |
  68. | Princeton, NJ 08544        | Internet:     groth@pupgg.princeton.edu |
  69. \----------------------------------------------------------------------/
  70.