From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,531067aacc59f91b X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,531067aacc59f91b X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-08-07 06:05:21 PST Path: gmdzi!unido!mcsun!uunet!decwrl!pa.dec.com!decprl!decprl!boyd From: boyd@prl.dec.com (Boyd Roberts) Newsgroups: comp.sys.dec,comp.unix.ultrix Subject: Re: "You have mail" vs "You have new mail" Message-ID: <1991Aug7.124800.18430@prl.dec.com> Date: 7 Aug 91 12:48:00 GMT References: Sender: news@prl.dec.com (USENET News System) Organization: Digital Equipment Corporation - Paris Research Laboratory Xref: gmdzi comp.sys.dec:24993 comp.unix.ultrix:47240 Nntp-Posting-Host: prl313.prl.dec.com In article , scs@iti.org (Steve Simmons) writes: > > 723c727 > < printf("You have mail.\n"); > --- > > printf("You have %smail.\n", (statb.st_mtime > statb.st_atime) ? "new " : ""); > This doesn't do the job. You want to test the last logout time against statb.st_mtime and that value is not easy to determine. I'm sure SCO could hide this in their C2 security database, but scanning wtmp is not on. The st_atime vs st_mtime test is just not right. Boyd Roberts boyd@prl.dec.com ``When the going gets wierd, the weird turn pro...''