/* Copyright (c) 1979 Regents of the University of California */
* Startup -- interface with user.
* Find out who the user is, copy his mail file (if exists) into
* /tmp/Rxxxxx and set up the message pointers. Then, print out the
* message headers and read user commands.
extern char tempMesg
[], _sobuf
[];
argv
[argc
] = (char *) -1;
for (i
= 1; i
< argc
; i
++) {
if (equal(argv
[i
], "-f")) {
if (equal(argv
[i
], "-n")) {
if (ef
== NOSTR
&& argc
> 1) {
if (equal(argv
[1], "-i")) {
editfile
= mailname
= ef
;
if ((ibuf
= fopen(mailname
, "r")) == NULL
) {
if ((i
= open(mailname
, 1)) < 0)
printf("Warning: \"%s\" not writable.\n", mailname
);
if ((ibuf
= fopen(mailname
, "r")) == NULL
) {
* Copy the mudder into /tmp
* Announce the presence of this funny file.
if ((otf
= fopen(tempMesg
, "w")) == NULL
) {
if ((itf
= fopen(tempMesg
, "r")) == NULL
) {
* print headings and accept user commands. */
printf("No messages.\n");