/*
* 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 */
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* All global externs defined in mail.h. All variables are initialized
* here!
*
* !!!!!IF YOU CHANGE (OR ADD) IT HERE, DO IT THERE ALSO !!!!!!!!
*
*/
#include "mail.h"
char *errlist[]= {
"",
"Unknown system",
"Problem with mailfile",
"Space problem",
"Unable to forward mail, check permissions and group",
"Syntax error",
"Forwarding loop",
"Invalid sender",
"Invalid recipient",
"Too many From lines",
"Invalid permissions",
"Cannot open mbox",
"Temporary file problem",
"Cannot create dead.letter",
"Unbounded forwarding",
"Cannot create lock file",
"No group id of 'mail'",
"Problem allocating memory",
"Could not fork",
"Cannot pipe",
"Must be owner to modify mailfile",
"Surrogate command failed"
};
int file_size;
int flgm;
/* Default_display indicates whether to display this header line to the TTY */
/* when in default mode. Can be overridden via 'P' command at ? prompt */
"", FALSE,
"Auto-Forward-Count:", FALSE,
"Auto-Forwarded-From:", FALSE,
"Content-Length:", TRUE,
"Content-Type:", FALSE,
"Date:", TRUE,
"Default-Options:", FALSE,
"End-of-Header:", FALSE,
"From ", TRUE,
">From ", TRUE,
"From:", TRUE,
"MIME-Version:", FALSE,
"MTS-Message-ID:", FALSE,
"Message-Type:", FALSE,
"Message-Version:", FALSE,
"Message-Service:", TRUE,
"Received:", FALSE,
"Report-Version:", FALSE,
"Subject:", TRUE,
"To:", TRUE,
">To:", FALSE,
"Transport-Options:", FALSE,
"UA-Content-ID:", FALSE,
/*Dummy place holders for H_DAFWDFROM,*/
/*H_DTCOPY and H_RECEIVED. Should */
/* match above first...*/
"Hold-Auto-Forwarded-From:", FALSE,
"Hold->To:", FALSE,
"Hold-Received:", FALSE,
"Continue:", FALSE,
"Name-Value:", FALSE,
};
char *help[] = {
"?\t\tprint this help message\n",
"#\t\tdisplay message number #\n",
"-\t\tprint previous\n",
"+\t\tnext (no delete)\n",
"! cmd\t\texecute cmd\n",
"<CR>\t\tnext (no delete)\n",
"a\t\tposition at and read newly arrived mail\n",
"d [#]\t\tdelete message # (default current message)\n",
"dp\t\tdelete current message and print the next\n",
"dq\t\tdelete current message and exit\n",
"h a\t\tdisplay all headers\n",
"h d\t\tdisplay headers of letters scheduled for deletion\n",
"h [#]\t\tdisplay headers around # (default current message)\n",
"m user \tmail (and delete) current message to user\n",
"n\t\tnext (no delete)\n",
"p\t\tprint (override any warnings of binary content)\n",
"P\t\toverride default 'brief' mode and display ALL header lines\n",
"q, ^D\t\tquit\n",
"r [args]\treply to (and delete) current letter via mail [args]\n",
"s [files]\tsave (and delete) current message (default mbox)\n",
"u [#]\t\tundelete message # (default current message)\n",
"w [files]\tsave (and delete) current message without header\n",
"x\t\texit without changing mail\n",
"y [files]\tsave (and delete) current message (default mbox)\n",
0
};
* deliver directly to mailbox
*/
* when going into a mailbox
*/
int keepdbgfile;
char *msgtype;
int sav_errno;
void (*saveint)();
/* Any header line prefixes listed here WILL be displayed in default mode */
/* If it's not here, it won't be shown. Can be overridden via 'P' command */
/* at ? prompt */
char *seldisp[] = {
"Cc:",
"Bcc:",
"Paper-",
"Phone:",
"Message-",
"Original-",
"Confirming-",
"Delivered-",
"Deliverable-",
"Not-",
"En-Route-To:",
0
};
int surr_len = 0;
int init()
{
}