Subject: Re: Location of Mail Directory
To: Greg Earle <earle@isolar.Tujunga.CA.US>
From: Chris G. Demetriou <cgd@postgres.Berkeley.EDU>
List: current-users
Date: 04/05/1994 21:07:28
>I took a look at /usr/src/usr/bin/mail but didn't find any obvious reason why.
umm, if you track down where mail gets the name from, you find:
char*
username()
{
char *np;
if ((np = getenv("USER")) != NOSTR)
return np;
return getname(getuid());
}
now, i'll bet that you've got USER set...
as for your 'from' problems:
327 [sun-lamp] mail % from | wc
870 6090 53944
328 [sun-lamp] mail % su
Password:
sun-lamp# from | wc
from: can't read /var/mail/root.
0 0 0
sun-lamp# from root
from: can't read /var/mail/root.
i'd guess that there's something wrong with your environment.
cgd
------------------------------------------------------------------------------