/*
* 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"
#include "mail.h"
/*
* generate delivery notification if required.
*/
int rc;
char *name;
{
register char *p;
register int i;
/* Want to send Positive delivery notification. Need to */
/* put selected header info from orig. msg aside to */
/* avoid confusion with header info in Delivery Rpt. */
}
if (rc == 0) {
/* Verify that positive delivery notification requested */
goto rtrn;
}
} else {
/* Verify that negative delivery notification requested */
goto rtrn;
}
}
pargs[0] = "mail";
pargs[2] = 0;
/* Can't get pipe to mail. Just forget it..... */
goto rtrn;
}
} else {
}
/* get date string into buf for later...*/
/* strip year out of date string, insert 'GMT', and put year back... */
*p = '\0';
} else {
/* If no H_DATE line in original message, use date */
/* in last UNIX H_FROM1 or H_FROM line */
}
/* Find date portion of line. */
/* Assumes line is of form - */
/* 'name_date_[remote_from_sys|forwarded_by_name]' */
} else {
/* Walk backwards from end of string to 3rd blank, */
/* and then check for 'remote from' or 'forwarded by' */
/* If either found, truncate there, else use entire */
/* string. */
i = 0;
while (p > buf) {
if (*p == ' ') {
if (++i == 3) {
break;
}
}
p--;
}
if ((i != 3) || (p <= buf)) {
} else {
*p = '\0';
}
}
}
}
}
}
}
}
}
cbuf[0] = '\0';
/* Pick comment field off of ">To:" line and put into cbuf */
}
if (rc == 0) {
} else {
*p = '\0';
}
/* if en-route-to, put comment there, else put it here*/
}
} else {
" ======= Surrogate command =======\n");
((SURRcmdstr == (char *)NULL) ?
"" : SURRcmdstr));
/* Include stderr from surrogate, if any */
if (SURRerrfile) {
" ==== Start of stdout & stderr ===\n");
(char *)NULL) {
}
}
" ==== End of stdout & stderr ===\n");
} else
" ==== stdout & stderr unavailable ===\n");
} else {
}
}
if (p != (char *)NULL) {
}
}
}
}
}
rtrn:
/* Restore header info from original message. (see above and also */
/* goback()). */
return;
}