home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21957 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.4 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!ukma!netnews.louisville.edu!wkuvx1!waltoml
  2. From: waltoml@wkuvx1.bitnet
  3. Newsgroups: comp.os.vms
  4. Subject: RE: How to repeat "new Mail message"??
  5. Message-ID: <1993Jan25.123642.5215@wkuvx1.bitnet>
  6. Date: 25 Jan 93 12:36:42 CST
  7. Organization: Western Kentucky University, Bowling Green, KY
  8. Lines: 39
  9.  
  10.  
  11. Hi! 
  12. I understand you need a mailcounter that will show the "you have X new
  13. mail messages" message when you execute it.  This small excerpt from a
  14. command procedure I wrote called BIGRED.COM should do what you have
  15. asked.  Feel free to modify it to suit your own needs. 
  16.  
  17. Settummanque!
  18.  
  19. Mike Walton  (WALTOML@WKUVX1.BITNET)
  20. former Assistant Area Coordinator/Information Manager
  21. Greenwood, Kentucky
  22.  
  23. ---------------------------cut here please------------------------------
  24. $MAILCOUNT:
  25. $!This simple thing only counts the number of mail messages you've received
  26. $!since logging on. It won't (or at least in this version, anyways) let you
  27. $!see who you received mail from:
  28. $del3   :== delete
  29. $Set term/nobroadcast
  30. $define sys$output mailmsg.tmp
  31. $!This creates a temporary file to read mail from:
  32. $Mail
  33.   Spawn Show Time  
  34.   Exit
  35. $deassign sys$output
  36. $close/nolog sys$output
  37. $!This closes the temporary file
  38. $set term/broadcast
  39. $define/nolog sys$output tt:
  40. $!We are now going to read what we "recorded"
  41. $Say Bold
  42. $type mailmsg.tmp
  43. $!now to clean everything up:
  44. $del3 mailmsg.tmp;*
  45. $Say restore, co
  46. $return
  47. $EXIT
  48.  
  49.