Xref: utzoo comp.mail.misc:2300 comp.unix.xenix:7249 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!crdgw1!sungod!davidsen From: davidsen@sungod.crd.ge.com (ody) Newsgroups: comp.mail.misc,comp.unix.xenix Subject: Re: Checking for new mail Message-ID: <1822@crdgw1.crd.ge.com> Date: 22 Aug 89 21:16:07 GMT References: <105@csnz.co.nz> <122772@sun.Eng.Sun.COM> Sender: news@crdgw1.crd.ge.com Reply-To: davidsen@crdos1.UUCP (bill davidsen) Followup-To: comp.mail.misc Organization: General Electric Corp. R&D, Schenectady, NY Lines: 13 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@crdos1.crd.GE.COM) {uunet | philabs}!crdgw1!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me