Tweak previous, it added a bad memory access
[s-mailx.git] / nail.rc
blobee8108ba83a3d6384ba1ec1ba5ba3afa555e955f
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-pre4 / 2017-04-13
16 #--MKREL-END--
18 ## Variables
20 # The standard POSIX 2008/Cor 2-2016 mandates the following initial settings:
21 # [a]   noallnet, noappend, asksub, noaskbcc, noaskcc, noautoprint,
22 # [b-e] nobang, nocmd, nocrt, nodebug, nodot, escape="~",
23 # [f-i] noflipr, nofolder, header, nohold, noignore, noignoreeof,
24 # [j-o] nokeep, nokeepsave, nometoo, nooutfolder,
25 # [p-r] nopage, prompt="? ", noquiet, norecord,
26 # [s]   save, nosendwait, noshowto, nosign, noSign,
27 # [t-z] toplines="5"
29 # Notes:
30 # - *hold, *keep*, *keepsave* and *sendwait* are deliberately set below.
31 # - no*onehop* doesn't exist in this implementation.
32 #   (To pass options through to the MTA, either add them after a "--"
33 #   separator on the command line or set the *sendmail-arguments* variable.)
34 # (Keep in SYNC: ./nail.h:okeys, ./nail.rc, ./nail.1:"Initial settings"!)
36 # Adjust the standard-imposed default variable settings.
37 # Some of the following variables are not portable and may thus have no effect
38 # with other Mail(1) / mailx(1) programs.
39 # Entries are marked [OPTION] if their availability is compile-time dependent.
41 # If threaded mode is activated, automatically collapse thread
42 set autocollapse
44 # Enter threaded mode automatically
45 #set autosort=thread
47 # Append rather than prepend when writing to mbox automatically.
48 # This has no effect unless *hold* is unset (it is set below)
49 set append
51 # Ask for a message subject.
52 set ask
54 # *bsdannounce* prints a header summary on folder change and thus complements
55 # *header* on a per-folder basis (it is meaningless unless *header* is set)
56 set bsdannounce
58 # Uncomment this in order to get coloured output in $PAGER (if possible).
59 #set colour-pager
60 # Btw., if your $PAGER is less(1) or lv(1) you will usually be served, as
61 # documented for $PAGER in the manual, very well by doing, e.g., less(1):
62 #  set PAGER=less
63 #  environ unset LESS
65 # Assume a CRT-like terminal and invoke a $PAGER if output doesn't fit on a
66 # the screen.  (Set crt=0 to always page; value treated as number of lines)
67 set crt
69 # When composing messages a line consisting of `.' finalizes a message
70 #set dot
72 # Startup into $EDITOR (or $VISUAL) in compose mode ("automatic `~e'")
73 #set editalong
75 # When spawning an editor in compose mode (*editalong*, ~e), edit headers
76 set editheaders
78 # Startup into interactive mode even if the (given) mailbox is empty
79 set emptystart
81 # When replying to or forwarding a message the comment and name parts of email
82 # addresses are removed unless this variable is set
83 set fullnames
85 # [OPTION] Add more entries to the history as is done by default.
86 # The latter will cause the builtin editor to save those entries, too
87 set history-gabby history-gabby-persist
89 # Do not move read messages of system mailboxes to MBOX by default since this
90 # is likely to be irritating for most users today; also see *keepsave*
91 set hold
93 # Quote the original message in replies by "> " as usual on the Internet
94 # Historically this was a tabulator, as in "wysh set indentprefix=$'\t'"
95 set indentprefix="> "
97 # Mark messages that have been answered
98 set markanswered
100 # Try to circumvent false or missing MIME Content-Type descriptions.
101 # Do set a value for extended behaviour (see the manual)
102 #set mime-counter-evidence
103 set mime-counter-evidence=0xE
105 # Control loading of mime.types(5) file: the value may be a combination of the
106 # letters "s" and "u": if "u" is seen ~/.mime.types will be loaded if possible;
107 # "s" adds /etc/mime.types, if available; setting this without any value uses
108 # only a set of builtin mimetypes; the default behaviour equals "us".
109 # An extended syntax that allows loading of other, specified files is available
110 # if the value contains an equal sign "=", see the manual for more
111 #set mimetypes-load-control
113 # Do not remove empty (MBOX) system mailboxes (or _no_ empty (MBOX) mailbox
114 # at all if $POSIXLY_CORRECT / *posix* are set!).
115 # This may be relevant for privacy since other users could otherwise create
116 # them with different permissions
117 set keep
119 # Do not move `save'd or `write'n message to mbox by default since this is
120 # likely to be irritating for most users today; also see *hold*
121 set keepsave
123 # When writing mailbox files we strip Content-Length: and Lines: header fields
124 # from edited / changed messages, because S-nail doesn't deal with these
125 # (non-standard) fields -- and since other MUAs may rely on their content, if
126 # present, it seems more useful to strip them than to keep them, now that they
127 # became invalid; set this to include them nonetheless
128 #set keep-content-length
130 # An informational prompt (and see "Gimmicks" below).
131 # Note the _real_ evaluation occurs once used (see *prompt* manual entry)
132 #wysh set prompt='?\${?}!\${!}[\${account-name}#\${mailbox-display}]? '
134 # Automatically quote the text of the message that is responded to
135 set quote
137 # On group replies, specify only the sender of the original mail in  To: and
138 # mention it's other recipients in the secondary Cc: instead of placing them
139 # all together in To:
140 set recipients-in-cc
142 # When responding to a message, try to answer in the same character set
143 # (which is subject to `charsetalias' expansion, though)
144 #set reply-in-same-charset
146 # [OPTION] Outgoing messages are sent in UTF-8 if possible, otherwise LATIN1.
147 # Note: it is highly advisable to read the section "Character sets" of the
148 # manual in order to understand all the possibilities that exist to fine-tune
149 # charset usage (variables also of interest: *ttycharset*, *charset-8bit*,
150 # *sendcharsets-else-ttycharset*; and of course we inherit the $LC_CTYPE /
151 # $LC_ALL / $LANG environment variables and react upon them)
152 set sendcharsets=utf-8,iso-8859-1
154 # When sending a message wait until the MTA (including the builtin SMTP one)
155 # exits before accepting further commands.  Only with this variable set errors
156 # reported by the MTA will be recognizable!
157 set sendwait
159 # Display real sender names in header summaries instead of only addresses
160 set showname
162 # Show recipients of messages sent by the user himself in header summaries
163 set showto
165 ## Commands
167 # Most commands are not portable to other Mail(1) / mailx(1) programs, which is
168 # why most commands are commented out.  To remain portable, place anything
169 # specific in its own file, then "set mailx-extra-rc=~/.my-file" in $MAILRC
170 # (usually ~/.mailrc).
172 # Map ISO-8859-1 to LATIN1, and LATIN1 to CP1252.
173 # This affects message display and *reply-in-same-charset*
174 #charsetalias iso-8859-1 latin1  latin1 cp1252
176 # Only include the selected header fields when printing messages
177 # `headerpick' is not portable, so use the standard `retain'
178 retain from_ date from to cc subject message-id mail-followup-to reply-to
179 #headerpick type retain from_ date from to cc subject \
180 #   message-id mail-followup-to reply-to
181 # ...when forwarding messages
182 #headerpick forward retain subject date from to cc
183 # ...and don't include these when saving message, etc.
184 #if [ "$features" =@ +regex ]
185 #  headerpick save ignore '^Original-.*$' '^X-.*$'
186 #end
188 ## Some pipe-TYPE/SUBTYPE entries
190 # HTML as text, inline display via lynx(1)
191 #if [ "$features" !@ +filter-html-tagsoup ]
192 #   set pipe-text/html='lynx -stdin -dump -force_html'
193 #endif
195 # PDF display, asynchronous display
196 #wysh set pipe-application/pdf='@=&@\
197 #   trap "rm -f \"${MAILX_FILENAME_TEMPORARY}\"" EXIT;\
198 #   trap "trap \"\" INT QUIT TERM; exit 1" INT QUIT TERM;\
199 #   mupdf "${MAILX_FILENAME_TEMPORARY}"'
201 ## Gimmicks
203 # More key bindings for the Mailx-Line-Editor (when in interactive mode)
204 #if terminal && [ "$features" =@ +key-bindings ]
205 #   bind base $'\e',d mle-snarf-word-fwd
206 #   bind base $'\e',$'\c?' mle-snarf-word-bwd
207 #   bind base $'\e',f mle-go-word-fwd
208 #   bind base $'\e',b mle-go-word-bwd
209 #endif
211 # Coloured prompt for the Mailx-Line-Editor (when in interactive mode)
212 #if terminal && [ "$features" =@ +mle ] && [ "$features" =@ +colour ]
213 #   colour 256 mle-position fg=202
214 #   colour 256 mle-prompt fg=red
215 #   colour iso mle-position ft=reverse
216 #   colour iso mle-prompt fg=red
217 #   colour mono mle-position ft=reverse
218 #   colour mono mle-prompt ft=bold
219 #endif
221 # s-it-mode