home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / mail / mush / 279 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  2. From: bart@zigzag.z-code.COM (Bart Schaefer)
  3. Newsgroups: comp.mail.mush
  4. Subject: Re: Testing for new messages
  5. Message-ID: <9207250322.AA26480@zigzag.zipcode.com>
  6. Date: 25 Jul 92 03:22:34 GMT
  7. Sender: daemon@athena.mit.edu (Mr Background)
  8. Reply-To: bart@zigzag.z-code.com
  9. Organization: The Internet
  10. Lines: 38
  11.  
  12. On Jul 17, 12:52am, Lamont Granquist wrote:
  13. } Subject: Testing for new messages
  14. }
  15. } This is pretty simple.  I'm using mush 7.2.2 and all I want to do is
  16. } put something in my .mushrc file that says:
  17. } if <I have any new messages>  /* or <the last message is new> would work */
  18. }   do such-and-such-crap.
  19. } endif
  20.  
  21. You can't do that in .mushrc, because .mushrc is read before the folder
  22. has been loaded.
  23.  
  24. What you can do is create another file (e.g., .mushfilter) and put in
  25. it something like
  26.  
  27.     :n | set new
  28.     if $?new
  29.     do such-and-such-crap
  30.     endif
  31.  
  32. And then read it by using:
  33.  
  34.     mush -F ~/.mushfilter
  35.  
  36. Mush will read your regular init files, then load the folder, then read
  37. the .mushfilter file, and finally continue into the regularly scheduled
  38. user interface.
  39.  
  40. You may wish to have the last line of .mushfilter be
  41.  
  42.     headers
  43.  
  44. because the -F option implies -N (no headers).
  45.  
  46. -- 
  47. Bart Schaefer                                     schaefer@zigzag.z-code.com
  48. Z-Code Software Corp.                             schaefer@z-code.com
  49.