* "You have mail" vs "You have new mail"
@ 1991-08-06 20:44 Steve Simmons
1991-08-07 12:48 ` Boyd Roberts
0 siblings, 1 reply; 2+ messages in thread
From: Steve Simmons @ 1991-08-06 20:44 UTC (permalink / raw)
Recently there was some discussion here about the message "You have
mail" being generated at login. Lots of folks want a different
message, "You have new mail", if some or all of the mail is unread.
Those of you with source licences can fix this easily with the
following patch to login (login.c as of Ultrix 3.1):
723c727
< printf("You have mail.\n");
---
> printf("You have %smail.\n", (statb.st_mtime > statb.st_atime) ? "new " : "");
We sent this patch to DEC recently, so perhaps they will put it in the
next release....sorry, I will not hand out login source or binaries
to anyone. Our login is pretty unlike DECs these days, and probably
not useful to anyone else.
--
[referring to A/UX development] "With our new divisional structure, we've
put in place an organization that can walk and chew gum at the same time."
-- Jim Groff, a marketing director at Apple. Quoted in UniNews, 7/8/91
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "You have mail" vs "You have new mail"
1991-08-06 20:44 "You have mail" vs "You have new mail" Steve Simmons
@ 1991-08-07 12:48 ` Boyd Roberts
0 siblings, 0 replies; 2+ messages in thread
From: Boyd Roberts @ 1991-08-07 12:48 UTC (permalink / raw)
In article <scs.681511488@wotan.iti.org>, 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...''
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1991-08-07 12:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1991-08-06 20:44 "You have mail" vs "You have new mail" Steve Simmons
1991-08-07 12:48 ` Boyd Roberts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox