Checking for new mail

ody davidsen at sungod.crd.ge.com
Wed Aug 23 07:16:07 AEST 1989


  ksh does this for you. It's relatively easy to write your own in shell
if you want something fancy, check the mod time of the mailfile against
another file. You can use one message for mail since last reading, like
"you have mail" and one for mail since last informational message "you
have NEW mail." This can be hacked any way you want.

  The advantage of havinf it in shell is that it come out at the right
time, just before reading another command, and doesn't trash your
screen. Stuff on the status line is okay if you have a staus line.
	bill davidsen		(davidsen at crdos1.crd.GE.COM)
  {uunet | philabs}!crdgw1!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.unix.xenix mailing list