/*
* 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 1996 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "rcv.h"
#include <locale.h>
/*
* mailx -- a modified version of a University of California at Berkeley
* mail program
*
* Perform message editing functions.
*/
/*
* Edit a message list.
*/
int
{
char *edname;
return(0);
}
/*
* Invoke the visual editor on a message list.
*/
int
{
char *edname;
return(0);
}
/*
* Edit a message by writing the message into a funnily-named file
* (which should not exist) and forking an editor on it.
* We get the editor from the stuff above.
*/
static void
{
long modtime;
/*
* Set signals; locate editor.
*/
/*
* Deal with each message to be edited . . .
*/
goto out;
}
/*
* Copy the message into the edit file.
*/
O_EXCL, 0600)) < 0 ||
goto out;
}
goto out;
}
goto out;
}
/*
* If we are in read only mode, make the
* temporary message file readonly as well.
*/
if (readonly)
/*
*/
modtime = 0;
else
perror("fork");
goto out;
}
if (pid == 0) {
sigchild();
_exit(1);
}
;
/*
* If in read only mode, just remove the editor
* temporary and return.
*/
if (readonly) {
continue;
}
/*
* Now copy the message to the end of the
* temp file.
*/
continue;
}
continue;
}
continue;
}
ms = 0L;
lines = 0;
if (c == '\n') {
lines++;
}
lastc = c;
break;
ms++;
}
if (!blank) {
ms++;
lines++;
}
perror("/tmp");
} else {
"*** Message content is not printable: pipe to command or save to a file ***"));
}
}
/*
* Restore signals and return.
*/
out:
}