Xref: utzoo comp.mail.misc:2314 comp.unix.xenix:7324 comp.unix.i386:178 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sgi!calcite!vjs From: vjs@calcite.UUCP (Vernon Schryver) Newsgroups: comp.mail.misc,comp.unix.xenix,comp.unix.i386 Subject: Re: Checking for new mail Summary: won't work in SVR3 Message-ID: <64@calcite.UUCP> Date: 27 Aug 89 20:20:46 GMT References: <105@csnz.co.nz> <1989Aug26.200813.15629@twwells.com> Organization: Rhyolite Software, Mountain View, CA Lines: 17 There is a trouble with schemes for comparing mtime & atime to see if new mail has arrived. Atime>=mtime after /bin/mail has delivered mail, unless it cannot read the mail box. Thus, since /bin/mail is SGID=mail to write it, you have to make /usr/mail/$USER unreadable by group. Note that breaks /bin/mail's forwarding mechanism. If you use the bit of dung called mailx to look at mail, and delete some but not all of the contents of your mailbox, mailx will carefully restore atime