xref: /illumos-gate/usr/src/cmd/mailx/misc/mailx.rc (revision 5422785d)
1*7c478bd9Sstevel@tonic-gate# CDDL HEADER START
2*7c478bd9Sstevel@tonic-gate#
3*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
4*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
5*7c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
6*7c478bd9Sstevel@tonic-gate# with the License.
7*7c478bd9Sstevel@tonic-gate#
8*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
10*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
11*7c478bd9Sstevel@tonic-gate# and limitations under the License.
12*7c478bd9Sstevel@tonic-gate#
13*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
14*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
16*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
17*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
18*7c478bd9Sstevel@tonic-gate#
19*7c478bd9Sstevel@tonic-gate# CDDL HEADER END
20*7c478bd9Sstevel@tonic-gate#
21*7c478bd9Sstevel@tonic-gate# Copyright 2000 Sun Microsystems, Inc.  All rights reserved.
22*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
23*7c478bd9Sstevel@tonic-gate#
24*7c478bd9Sstevel@tonic-gate# The following 3 settings produce the familiar Solaris behavior.
25*7c478bd9Sstevel@tonic-gateset appenddeadletter
26*7c478bd9Sstevel@tonic-gateunset pipeignore
27*7c478bd9Sstevel@tonic-gateunset replyall
28*7c478bd9Sstevel@tonic-gateset append dot showname
29*7c478bd9Sstevel@tonic-gateif t
30*7c478bd9Sstevel@tonic-gate	# mailx-only defaults here
31*7c478bd9Sstevel@tonic-gate	#
32*7c478bd9Sstevel@tonic-gate	# automatically incorporate new messages as they arrive.
33*7c478bd9Sstevel@tonic-gate	# would be nice if mailtool supported this as well.
34*7c478bd9Sstevel@tonic-gate	set autoinc
35*7c478bd9Sstevel@tonic-gateelse
36*7c478bd9Sstevel@tonic-gate	# mailtool-only defaults here
37*7c478bd9Sstevel@tonic-gate	#
38*7c478bd9Sstevel@tonic-gate	# this should probably not be mailtool-only, but for
39*7c478bd9Sstevel@tonic-gate	# compatibility we only put it here.
40*7c478bd9Sstevel@tonic-gate	set hold
41*7c478bd9Sstevel@tonic-gate	# following so hierarchical menu is the default
42*7c478bd9Sstevel@tonic-gate	set LISTER="ls -LF"
43*7c478bd9Sstevel@tonic-gate	# default is to allow editing of message windows
44*7c478bd9Sstevel@tonic-gate	set editmessagewindow
45*7c478bd9Sstevel@tonic-gateendif
46*7c478bd9Sstevel@tonic-gate
47*7c478bd9Sstevel@tonic-gate# most mail headers are uninteresting to most people.  here we ignore all
48*7c478bd9Sstevel@tonic-gate# the uninteresting headers that are at all common.  a better approach
49*7c478bd9Sstevel@tonic-gate# might've been to retain only the interesting headers...
50*7c478bd9Sstevel@tonic-gate
51*7c478bd9Sstevel@tonic-gate# ignore uninteresting headers
52*7c478bd9Sstevel@tonic-gateignore apparently-to default-options errors-to in-reply-to precedence priority
53*7c478bd9Sstevel@tonic-gateignore received reply-to return-path return-receipt-to sender status via
54*7c478bd9Sstevel@tonic-gate
55*7c478bd9Sstevel@tonic-gate# ignore headers from news
56*7c478bd9Sstevel@tonic-gateignore approved company confirmed-by distribution expires followup-to keywords
57*7c478bd9Sstevel@tonic-gateignore lines message-id newsgroups organization path posted-date posting-number
58*7c478bd9Sstevel@tonic-gateignore references submitted-by summary
59*7c478bd9Sstevel@tonic-gate
60*7c478bd9Sstevel@tonic-gate# ignore strange headers from other mail systems
61*7c478bd9Sstevel@tonic-gateignore auto-forward-count auto-forwarded-from email-version
62*7c478bd9Sstevel@tonic-gateignore end-of-header end-of-protocol message-protocol message-service
63*7c478bd9Sstevel@tonic-gateignore message-type message-version mts-message-id report-version sent-by
64*7c478bd9Sstevel@tonic-gateignore transport-options ua-content-id ua-message-id
65*7c478bd9Sstevel@tonic-gate
66*7c478bd9Sstevel@tonic-gate# ignore content headers, but they'll still be saved
67*7c478bd9Sstevel@tonic-gateignore content-length content-type content-charset
68*7c478bd9Sstevel@tonic-gate
69*7c478bd9Sstevel@tonic-gate# ignore common non-standard headers
70*7c478bd9Sstevel@tonic-gateignore x-lines x-mailer x-postmark x-sequence x-zippy
71*7c478bd9Sstevel@tonic-gateignore x-sun-charset
72