From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,531067aacc59f91b,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,531067aacc59f91b,start X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1991-08-07 00:16:45 PST Path: gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!yale.edu!ox.com!hela!wotan.iti.org!scs From: scs@iti.org (Steve Simmons) Newsgroups: comp.sys.dec,comp.unix.ultrix Subject: "You have mail" vs "You have new mail" Summary: Here's the fix, guys Message-ID: Date: 6 Aug 91 20:44:48 GMT Sender: usenet@iti.org (Hela News Manager) Organization: Industrial Technology Institute Xref: gmdzi comp.sys.dec:24989 comp.unix.ultrix:47231 Nntp-Posting-Host: wotan.iti.org 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