home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21628 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1004 b   |  33 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!noc.near.net!ileaf!leafusa!bcking
  3. From: bcking@HQ.Ileaf.COM (Christine King)
  4. Subject: Re: How to repeat "new Mail message" ?
  5. Message-ID: <C17rnz.4Co@HQ.Ileaf.COM>
  6. Sender: usenet@HQ.Ileaf.COM
  7. Nntp-Posting-Host: natasha
  8. Organization: Interleaf, Inc.
  9. References: <1jm4nnINN59b@urmel.informatik.rwth-aachen.de>
  10. Date: Thu, 21 Jan 1993 17:09:34 GMT
  11. Lines: 20
  12.  
  13. To check for new mail any time you like, try this:
  14.  
  15. $! CHECKMAIL.COM
  16. $!    Is there any mail for me?
  17. $!==
  18. $ Msg_Status = f$environment("message")
  19. $ set message/nofac/noid/noseverity/notext
  20. $ mail
  21. dir newmail
  22. exit
  23. $ set message 'Msg_Status'
  24.  
  25.  
  26. If you only want the number of messages, not the dir listing too, just
  27. leave the 'dir newmail' line out of the comfile.
  28. -- 
  29.  Christine King, bcking@ileaf.com
  30.  Interleaf, Inc.      | My opinions are not  | "Time is like that,
  31.  9 Hillside Avenue    | necessarily those of |  except for the cannon
  32.  Waltham MA 02154 USA | Interleaf, Inc.      |  and the donut." -Dilbert
  33.