(BWDIC!) No! Let $! be errno, and $? the sole exit status..
[s-mailx.git] / nail.rc
blob8c18ff19e19f6da28accbba96beed9b660688bbf
1 #--MKRC-START--
2 #@ /etc/s-nail.rc - configuration file for S-nail(1)
3 #--MKRC-END--
4 #@ The syntax of this file is interpreted as follows:
5 #@ - A lines' leading whitespace is removed.
6 #@ - Empty lines are ignored.
7 #@ - Any other line is a command line.  Such lines can be spread over
8 #@   multiple lines if the newline character is "escaped" by placing
9 #@   a reverse solidus character \ as the last character of the line; any
10 #@   leading whitespace of follow lines is ignored, trailing whitespace before
11 #@   the escaped newline is not.
12 #@ - The number sign # is the comment-command and causes the (joined) line
13 #@   (content) to be ignored.  No other form of comments exist.
14 #--MKREL-START--
15 #@ S-nail(1): v14.9.0-pre3 / 2016-12-31
16 #--MKREL-END--
18 ## The standard POSIX 2008/Cor 2-2016 mandates the following initial settings:
19 # [a]   noallnet, noappend, asksub, noaskbcc, noaskcc, noautoprint,
20 # [b-e] nobang, nocmd, nocrt, nodebug, nodot, escape="~",
21 # [f-i] noflipr, nofolder, header, nohold, noignore, noignoreeof,
22 # [j-o] nokeep, nokeepsave, nometoo, nooutfolder,
23 # [p-r] nopage, prompt="? ", noquiet, norecord,
24 # [s]   save, nosendwait, noshowto, nosign, noSign,
25 # [t-z] toplines="5"
26 # Notes:
27 # - *hold, *keep*, *keepsave* and *sendwait* are deliberately set below.
28 # - no*onehop* doesn't exist in this implementation.
29 #   (To pass options through to the MTA, either add them after a "--"
30 #   separator on the command line or set the *sendmail-arguments* variable.)
31 # (Keep in SYNC: ./nail.h:okeys, ./nail.rc, ./nail.1:"Initial settings"!)
33 ## The remaining content adjusts the standard-imposed default settings.
34 # Note that some of the following flags are specific to S-nail(1) and may thus
35 # not work with other Mail(1) / mailx(1) programs.
36 # Entries are marked [OPTION] if their availability is compile-time dependent
38 ## Variables
40 # If threaded mode is activated, automatically collapse thread
41 set autocollapse
43 # Enter threaded mode automatically
44 #set autosort=thread
46 # Append rather than prepend when writing to mbox automatically.
47 # This has no effect unless *hold* is unset (it is set below)
48 set append
50 # Ask for a message subject.
51 set ask
53 # *bsdannounce* prints a header summary on folder change and thus complements
54 # *header* on a per-folder basis (it is meaningless unless *header* is set)
55 set bsdannounce
57 # Uncomment this in order to get coloured output in $PAGER (if possible).
58 #set colour-pager
59 # Btw., if your $PAGER is less(1) or lv(1) you will usually be served, as
60 # documented for $PAGER in the manual, very well by doing, e.g., less(1):
61 #  set PAGER=less
62 #  environ unset LESS
64 # Assume a CRT-like terminal and invoke a $PAGER if output doesn't fit on a
65 # the screen.  (Set crt=0 to always page; value treated as number of lines)
66 set crt
68 # When composing messages a line consisting of `.' finalizes a message
69 #set dot
71 # Startup into $EDITOR (or $VISUAL) in compose mode ("automatic `~e'")
72 #set editalong
74 # When spawning an editor in compose mode (*editalong*, ~e), edit headers
75 set editheaders
77 # Startup into interactive mode even if the (given) mailbox is empty
78 set emptystart
80 # When replying to or forwarding a message the comment and name parts of email
81 # addresses are removed unless this variable is set
82 set fullnames
84 # [OPTION] Add more entries to the history as is done by default.
85 # The latter will cause the builtin editor to save those entries, too
86 set history-gabby history-gabby-persist
88 # Do not move read messages of system mailboxes to MBOX by default since this
89 # is likely to be irritating for most users today; also see *keepsave*
90 set hold
92 # Quote the original message in replies by "> " as usual on the Internet
93 set indentprefix="> "
95 # Mark messages that have been answered
96 set markanswered
98 # Try to circumvent false or missing MIME Content-Type descriptions.
99 # Do set a value for extended behaviour (see the manual)
100 #set mime-counter-evidence
101 set mime-counter-evidence=0xE
103 # Control loading of mime.types(5) file: the value may be a combination of the
104 # letters "s" and "u": if "u" is seen ~/.mime.types will be loaded if possible;
105 # "s" adds /etc/mime.types, if available; setting this without any value uses
106 # only a set of builtin mimetypes; the default behaviour equals "us".
107 # An extended syntax that allows loading of other, specified files is available
108 # if the value contains an equal sign "=", see the manual for more
109 #set mimetypes-load-control
111 # Do not remove empty (MBOX) system mailboxes (or _no_ empty (MBOX) mailbox
112 # at all if $POSIXLY_CORRECT / *posix* are set!).
113 # This may be relevant for privacy since other users could otherwise create
114 # them with different permissions
115 set keep
117 # Do not move `save'd or `write'n message to mbox by default since this is
118 # likely to be irritating for most users today; also see *hold*
119 set keepsave
121 # When writing mailbox files we strip Content-Length: and Lines: header fields
122 # from edited / changed messages, because S-nail doesn't deal with these
123 # (non-standard) fields -- and since other MUAs may rely on their content, if
124 # present, it seems more useful to strip them than to keep them, now that they
125 # became invalid; set this to include them nonetheless
126 #set keep-content-length
128 # An informational prompt (and see "Gimmicks" below).
129 # Note the _real_ evaluation occurs once used (see *prompt* manual entry)
130 #wysh set prompt='?\${?}!\${!}[\${account-name}#\${mailbox-display}]? '
132 # Automatically quote the text of the message that is responded to
133 set quote
135 # On group replies, specify only the sender of the original mail in  To: and
136 # mention it's other recipients in the secondary Cc: instead of placing them
137 # all together in To:
138 set recipients-in-cc
140 # When responding to a message, try to answer in the same character set
141 # (which is subject to `charsetalias' expansion, though)
142 #set reply-in-same-charset
144 # [OPTION] Outgoing messages are sent in UTF-8 if possible, otherwise LATIN1.
145 # Note: it is highly advisable to read the section "Character sets" of the
146 # manual in order to understand all the possibilities that exist to fine-tune
147 # charset usage (variables also of interest: *ttycharset*, *charset-8bit*,
148 # *sendcharsets-else-ttycharset*; and of course we inherit the $LC_CTYPE /
149 # $LC_ALL / $LANG environment variables and react upon them)
150 set sendcharsets=utf-8,iso-8859-1
152 # When sending a message wait until the MTA (including the builtin SMTP one)
153 # exits before accepting further commands.  Only with this variable set errors
154 # reported by the MTA will be recognizable!
155 set sendwait
157 # Display real sender names in header summaries instead of only addresses
158 set showname
160 # Show recipients of messages sent by the user himself in header summaries
161 set showto
163 ## Commands
165 # Map ISO-8859-1 to LATIN1, and LATIN1 to CP1252.
166 # This affects message display and *reply-in-same-charset*
167 #charsetalias iso-8859-1 latin1  latin1 cp1252
169 # Only include the selected header fields when printing messages
170 headerpick type retain from_ date from to cc subject \
171    message-id mail-followup-to reply-to
172 # ...when forwarding messages
173 headerpick forward retain subject date from to cc
174 # ...and don't include these when saving message, etc.
175 #headerpick save ignore '^Original-.*$' '^X-.*$'
177 ## Some pipe-TYPE/SUBTYPE entries
179 # HTML as text, inline display via lynx(1)
180 #if [ "$features" !@ +filter-html-tagsoup ]
181 #   set pipe-text/html='lynx -stdin -dump -force_html'
182 #endif
184 # PDF display, asynchronous display
185 #wysh set pipe-application/pdf='@=&@\
186 #   trap "rm -f \"${MAILX_FILENAME_TEMPORARY}\"" EXIT;\
187 #   trap "trap \"\" INT QUIT TERM; exit 1" INT QUIT TERM;\
188 #   mupdf "${MAILX_FILENAME_TEMPORARY}"'
190 ## Gimmicks
192 # More key bindings for the Mailx-Line-Editor (when in interactive mode)
193 #if terminal && [ "$features" =@ +key-bindings ]
194 #   bind base $'\e',d mle-snarf-word-fwd
195 #   bind base $'\e',$'\c?' mle-snarf-word-bwd
196 #   bind base $'\e',f mle-go-word-fwd
197 #   bind base $'\e',b mle-go-word-bwd
198 #endif
200 # Coloured prompt for the Mailx-Line-Editor (when in interactive mode)
201 #if terminal && [ "$features" =@ +mle ] && [ "$features" =@ +colour ]
202 #   colour 256 mle-position   fg=202
203 #   colour 256 mle-prompt     fg=red
204 #   colour iso mle-position   ft=reverse
205 #   colour iso mle-prompt     fg=red
206 #   colour mono mle-position  ft=reverse
207 #   colour mono mle-prompt    ft=bold
208 #endif
210 # s-it-mode