/*
* 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"
/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "mail.h"
/*
This routine returns undeliverable mail as well as handles
replying to letters
*/
void
int letnum;
{
int i, w;
/*
* If dflag already == 1, then been here already and
* having a problem delivering failure notification.
* Reset dflag to 9 to avoid endless loop.....
*/
if (dflag == 1) {
dflag = 9;
if (!error) {
}
}
if (dflag < 2) {
work[0] = '\0';
wuser[0] = '\0';
if (!replying) {
dflag = 1;
if ((debug > 0) && (keepdbgfile == 0)) {
keepdbgfile++;
}
goto skipsend;
}
}
if (replying) {
}
== SAME ||
*cp != '\n';
cp++) {
}
buf[i++] = '!';
buf[i] = '\0';
if (line[0] == '>') {
i = 6;
} else {
i = 5;
}
for (w = i; line[w] != ' '; w++) {
}
wuser[w-i] = '\0';
if (line[0] == '>') {
break;
} else {
i = 5;
}
for (w = i; line[w] != ' '; w++) {
}
wuser[w-i] = '\0';
break;
}
}
if (work[0] != '\0') {
if (replying) {
return;
}
if (interactive) {
}
/* Put header info from message aside so it won't */
/* get confused with the Delivery Notification info */
}
}
if (dflag == 9) {
"%s: Cannot return mail.\n",
program);
mkdead();
}
else if (dflag < 2) {
}
dflag = 0;
error = 0;
}
}