* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)v7.local.c 8.1 (Berkeley) %G%";
* Local routines that are installation dependent.
* Locate the user's mailbox file (ie, the place where new, unread
(void)sprintf(buf
, "%s/%s", _PATH_MAILDIR
, user
);
* Get rid of the queued mail.
if (value("keep") != NOSTR
|| rm(mailname
) < 0)
close(creat(mailname
, 0600));
* Discover user login name.
if ((np
= getenv("USER")) != NOSTR
)
return getname(getuid());