home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / mailmsg3.zip / MAILWARN.BAT < prev    next >
DOS Batch File  |  1993-01-21  |  1KB  |  32 lines

  1. @echo off
  2. rem Mail Reminder Batch File (Ver 3.0) by John LeaverPower
  3. cls
  4. echo Checking for mail waiting messages ...
  5. cd C:\ICOM\CAP
  6. if exist MAILWARN.$$$ goto secondpass
  7. fgrep -e "mail waiting" %1
  8. if not errorlevel 1 goto chkqmail
  9. cut g "mail waiting" "mayl waiting" %1 >nul
  10. cut g "==<<" "===<" %1 >nul
  11. echo Flag file for MAILWARN.BAT.  Can be deleted anytime. >MAILWARN.$$$
  12. goto done
  13. :secondpass
  14. del MAILWARN.$$$
  15. if exist MAILWARN.TXT goto skipmake
  16. echo MAIL WAITING REMINDER FILE >MAILWARN.TXT
  17. :skipmake
  18. find "=<<" <%1 >>MAILWARN.TXT
  19. echo On the above date, the following mail reminder(s) were noted at logon: >>MAILWARN.TXT
  20. find "Main Board ..." <%1 >>MAILWARN.TXT
  21. find "Conference ..." <%1 >>MAILWARN.TXT
  22. echo Mail Reminder Flag File.  Can be deleted anytime. >MAILFLAG.TMP
  23. goto done
  24. :chkqmail
  25. fgrep -e "Number of messages found...." %1
  26. if not errorlevel 1 goto done
  27. fgrep -e "Personal messages found.....      0" %1
  28. if errorlevel 1 goto done
  29. echo Mail Reminder Flag File.  Can be deleted anytime. >MAILFLAG.TMP
  30. :done
  31. cd C:\ICOM
  32.