/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* NAME
*
* SYNOPSIS
* void copyback()
*
* DESCRIPTION
* Copy the reduced contents of lettmp back to
* the mail file. First copy any new mail from
* the mail file to the end of lettmp.
*/
#include "mail.h"
void
copyback()
{
register int i, n;
int new = 0;
/*
* Has new mail arrived?
*/
/*
* Append new mail assume only one new letter
*/
tmperr();
done(0);
}
done(0);
}
new = 1;
}
/*
* Copy mail back to mail file
*/
/*
* The invoker must own the mailfile being copied to
*/
done(0);
}
/*
* If user specified the '-f' option we dont do
* the routines to handle :saved files.
* As we would(incorrectly) restore to the user's
* mailfile upon next execution!
*/
if (flgf) {
} else {
}
if (!flgf) {
} else {
}
done(0);
}
done(0);
}
n = 0;
for (i = 0; i < nlet; i++) {
/*
* Note: any action other than an undelete, or a
* plain read causes the letter acted upon to be
* deleted
*/
}
n++;
}
}
if (!flgf) {
done(0);
}
#ifdef SVR4
done(0);
}
#else
done(0);
}
done(0);
}
#endif
}
/*
* Empty mailbox?
*/
if (n == 0) {
}
printf("New mail arrived\n");
}
unlock();
}