1 S - n a i l / S - m a i l x N e w s
2 ====================================
4 mdocmx(7) anchors are denoted by a number-sign #: typing
5 "^A ANCHOR" while reading the man(1)ual in a capable less(1)
6 will scroll to the manual's Point-Of-Interest, and pointing
7 a web- browser to the "#ANCHOR" of the online manual works.
9 v14.9.9 ("Marsh tit savours first spring sun, II") 2018-03-06
10 -------------------------------------------------------------
13 I hope with this the fallout of the Christmas 2016 "address the
14 Dr. Problem workshop" has been fully resolved and thus MIME for
15 header address fields, even if iconv(3) is involved, been fully
16 restored! We have even more tests for this now.
18 The release v14.9.8 was broken on big endian machines.
19 I will remove the v14.9.8 balls from the server by the weekend.
20 Sorry for the inconvenience!
22 Credits, in order of commit appearance: Slavko, Matej Mužila,
23 Rich Felker, Simon McVittie, Paride Legovini, Cág,
26 We welcome Slavko, Matej Mužila, Rich Felker and Simon McVittie in
29 NOTES, ChangeLog (packager-affine)
30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 - The v14.9.* series called *pipe-TYPE/SUBTYPE*#461 handlers in
33 display or quote mode with CR (carriage-return) bytes stripped
34 because of a missing output file comparison check, which broke
35 binary formats etc. (Slavko)
37 - We now have native support for Libidn2. (Matej Mužila)
39 - uname(1) is now hookable by setting the shell variable uname
40 when calling make ("uname=MY-UNAME make config" etc.).
43 We no longer bake the kernel version into the binary, and
44 `version'#287 includes uname(2) output.
45 (Simon McVittie, Paride Legovini)
47 - We now support a fallback P(seudo)R(andomNumber)G(enerator)
48 initialization even if getrandom(2)/getrandom(3) has been found
49 by the configuration, just like we do for "/dev/urandom" usage.
50 This does not affect systems with arc4random(3) or OpenSSL
51 random usage. (David Čepelík, Simon McVittie)
53 A new OPT_SSL_RANDOM make.rc variable, by default initialized to
59 - `~@'#303 list-edit behaviour in -##84 batch mode was broken.
61 - Character set names will now undergo generic normalization,
62 including stripping of iconv(3) //SUFFIXes.
64 git(1) shortlog (edited)
65 ^^^^^^^^^^^^^^^^^^^^^^^^
67 Steffen Nurpmeso (33):
68 e9fdc08a a_amv_var_check_vips(): fix comparison (Slavko)
69 dd6e4084 THANKS: Slavko
70 caa5de77 make-config.sh: tweak new iconv(3) replacement warning (Slavko)
71 9e1c55f6 Fix ~@ list-edit behaviour in -# batch mode; add ~@ test
72 69225c69 Fix: do not strip CRs when "displaying" through a *pipe-** handler
74 940d84f2 Add support for Libidn2 (Matej Mužila)..
75 38f33e37 THANKS: Matej Mužila
76 1d67806c Our iconv wrapper was completely broken! Now fixed (Rich Felker)..
77 a27d23ef cc-test.sh: fix t_behave_iconv_mbyte_base64 (Rich Felker)..
78 70a18a40 THANKS: Rich Felker
79 a46c4a0a Do not bake kernel version into binary (Simon McVittie, Paride
81 7f848761 THANKS: Simon McVittie
82 19673cbd Make uname(1) hookable (Simon McVittie)
83 1a488de9 Add OPT_SSL_RANDOM+, "fix" getrandom(2) (David Čepelík, Simon
85 8a9237c5 Fix n_boolify() with empty argument
86 ac67d755 FIX: again fallout of [0ede309c], not covered by [ffd29558] (Cág)..
87 dd6adbb3 IMAP does not need ICONV if ALWAYS_UNICODE_LOCALE (Predrag Punosevac)
88 c86a5ec6 `version': support vput and include uname(2) output (Simon McVittie)
89 1b018a36 Add *headline-plain* to force ASCII graphics (Cág)
91 565219b9 cc-test.sh: ARGH! MBOX content statistics not portable!
93 e1e62dd1 Fix n_iconv_str() [on big endian machines, the author]
95 v14.9.7 ("Marsh tit patiently scraping bark") 2018-02-16
96 --------------------------------------------------------
98 A maintenance release which fixes bugs and brings in features.
100 Credits, in order of commit appearance: Alexander Harm,
101 Viktor SZÉPE, Paul Eggert, Joseph Bisch, Paride Legovini,
103 A special credit to the disappearing mutt(1) bug tracker.
104 And to Gmane.org for creating gmane.mail.s-mailx.general!
106 Thanks Paride Legovini for becoming maintainer of the Debian port.
108 We welcome Joseph Bisch, Paride Legovini, and Peter J. Holzer in
111 NOTES, ChangeLog (packager-affine)
112 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 - The USB stick loss reported for v14.9.6 was fake news, so to
115 say, the stick exists and therefore the old key is not
118 - We are back at Gmane.org!
119 news.gmane.org/gmane.mail.s-mailx.general
121 - `history'#198 has learned to be context-sensitive a bit, and
122 has two new subcommands, `load' and `save'.
124 This is in parts backward incompatible because it needs a new
125 *history-file*#406 format; however, the old format can be loaded
126 yet compose-mode commands will not appear in compose mode no
127 more. Iirc you can start with an old format then `save' to
128 the new, then replace the "d" in the first column with "c" for
129 compose-mode commands which should appear correctly.
131 - Obsoletion warnings for variables now happen at `set'#254
132 time instead of when used. Running once via -v#81 may
135 - The saturation modifier of `vexpr'#288 is henceforth a prefix,
136 the suffix version is obsolete (but still supported for a while).
138 - A network address that contains no domain-, but only a valid local
139 user <name> in angle brackets will be automatically expanded to
140 a valid address when *hostname*#411 is set to a non-empty value;
141 setting it to the empty value instructs us that the used *mta*#440
142 (including builtin SMTP) will perform the necessary expansion.
145 Note that *hostname*#411 as well as *smtp-hostname*#521
146 will now undergo IDNA expansion if IDNA is supported.
148 And *from*#400 and *sender*#498 are now verified at `set'#254
149 time, not when used. (Viktor SZÉPE)
151 - The commit message in [d503bd82] is wrong, apologies to
152 Paride Legovini. The test(1) operator "-n" appeared in Seventh
153 Edition UNIX, not V8 as falsely claimed.
158 - Our `addrcodec'#130 parser chokes on lesser constructs.
160 - Presence of command-line MTA arguments without *expandargv*#390
161 are now a hard error. It was my fault that this was not the
162 default from the very start. (Viktor SZÉPE)
164 - Seen on the mutt bug tracker, we also still have had problems
165 with time settings that cross 32-bit boundaries. As that is
166 in parts induced by the C standard, now implement those parts on
167 our own, and be super careful in general. (Joseph Bisch)
169 - The `~@'#303 command escape did not shell-unquote the user input
170 again and was thus a bit broken; message attachments also work
173 - Support custom headers from the command line via -C#58.
174 And *customhdr*#377 is verified upon `set'#254 time.
176 - The simple builtin HTML viewer now supports <blockquote>
177 elements, which many web mailers, most notably gmail, use for
178 citation. (Peter J. Holzer)
180 git(1) shortlog (edited)
181 ^^^^^^^^^^^^^^^^^^^^^^^^
184 d503bd82 Patch configure script to not override build variables..
186 Steffen Nurpmeso (66):
187 437a103d mail1(): tweak "failed encoding" error message (Alexander Harm)
188 5f951f7b n_utf8_to_utf32(): FIX: implement compliant to Unicode 9.0, 3.9,
190 6ac954a4 mime_fromhdr(): normalize \0 and \n in encoded-words (mailspoof)
191 c59a20ff myaddrs(): Fix: do not return invalid *from* (Viktor SZÉPE)..
192 efc59473 *expandargv*: hard error if unset (Viktor SZÉPE)..
193 ef94b2d6 README: we are back at Gmane.org!
194 a832ef40 Yay! We have submissions:// at port 465 (too)! (RFC 8314)
195 cac4decc config.h: resort; fallback for S_ISDIR() (Paul Eggert)
196 1e43647b unixtime(): check mktime(3)+localtime(3) returns (Joseph Bisch)..
197 068fe5d3 fakedate(): implement ourselfs (Joseph Bisch)..
198 f430e3cc THANKS: Joseph Bisch
199 94ec5975 nail.1: fix spelling errors (Paride Legovini)
200 3311b6b9 THANKS: Paride Legovini
201 74d64ec7 cmd-headers.c,cmd-tab.h: fix spelling errors (Paride Legovini)
202 8477ea6f nail.1: yet another fix (Paride Legovini)
203 efe354ea More ISO C time and date checks etc. (Joseph Bisch)
204 f5409738 a_attachment_is_msg(): fix #NO message attachments (since
206 65ff0741 a_amv_var_check_num(): fix: variables need 32-bit not 64-bit limit!
207 fd2daba5 n_attachment_list_edit(): FIX: unquote user input again (!!!)
208 75917c30 ([BWDIC]) `history': support context-sensitive history (a bit)..
209 ff8b2ba1 Add -C (create custom header), change *customhdr*
210 2e67ac32 `vexpr': obsolete @ as suffix, it must henceforth be prefix..
211 b882c9b9 `vexpr': numeric ops: support [UuSs] number prefixes
212 2f356cd2 `vexpr': add `pbase' subcommand
213 9e652437 HTML filter: support <blockquote> quotes (Peter J. Holzer)
214 90e708e7 THANKS: Peter J. Holzer
215 9c7ea9cb Try to avoid tracing and attaching to privsep program
216 a4e21888 -S: as if within $'' if *v15-compat* (Alexander Harm)
217 333ecee1 *from*, *sender*: verify upon `set' time (Viktor SZÉPE)
218 ccaa7401 Optionally append *hostname* in "valid <user>" address (Viktor SZÉPE)
220 v14.9.6 ("Marsh tit abiding a snow storm"), 2017-12-05
221 ------------------------------------------------------
223 A bugfix release which fixes four serious and three other bugs.
224 A few new features came in, too.
226 Many thanks go to Ralph Corderoy who reported an issue that was
227 caused by a terrible, terrible word reversal that i managed to
228 produce in December 2016, and which caused the v14.9.x series to
229 not MIME encode (non-address) content of address header fields!
231 Credits, in order of commit appearance: Thomas Dickey,
232 Andreas Baumann, Erich Eckner, Gaetan Bisson, Solar Designer, Cág,
233 Ivan Tham, Ralph Corderoy and Doug McIlroy.
235 We welcome Andreas Baumann, Erich Eckner, Solar Designer and Cág
238 NOTES, ChangeLog (packager-affine)
239 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
241 - After USB stick loss the authors OpenPGP key has been switched to
243 pub 4096R/1883A0DD 2017-11-30 [expires: 2027-11-28]
245 EE19 E1C1 F2F7 054F 8D39 54D8 3089 64B5 1883 A0DD
246 uid Steffen Nurpmeso <steffen@sdaoden.eu>
248 - $TMPDIR#593 no longer honoured for root runs. (Solar Designer)
250 - *mime-encoding*#438 defaults to quoted-printable again. (Cág)
252 - We _can_ MIME encode even header fields which contain addresses.
253 Thanks to Ralph Corderoy we now also _do_ so again!
258 - ***#336 now uses *ifs*#413 when splitting.
260 - Freezing *ttycharset*#559 via -S#76 also survives using or
261 setting any of $LC_ALL#575, $LC_CTYPE#576 and $LANG#577 during
264 - New `local'#114 command modifier to localize changes.
265 Yet supported only for `set'#254, i.e., we have gained
266 macro-local variables.
268 - `vexpr'#288 now supports a BASE#number notation for integers,
269 like 16#AFFE as an alternative to 0xAFFE.
271 Hint: variable settings can most often use several bases, too,
272 e.g., i have "set mime-counter-evidence=0b1111".
274 - Very simple form of *quote-chars*#481 to adjust our knowledge of
275 what actually is to be treated as a quote character.
277 - *mime-counter-evidence*#437 deep inspection (bit four) has
278 been improved for the sole cases of quoting or displaying
279 a message. So messages with less than 25% of control characters
280 and such will now be displayed (made printable). This is yet
281 not configurable nor do we have a way to easily access a message
282 with more than that. (Doug McIlroy)
284 git(1) shortlog (edited)
285 ^^^^^^^^^^^^^^^^^^^^^^^^
287 Steffen Nurpmeso (44):
288 9bdfeba2 Introduce *mta-no-receiver-arguments* to bypass OpenSMTPD behaviour..
289 4ce4f80d mail1(): fix: unroll compose-mode `localopts' even on compose
291 3dc1d4ee FIX debug assertion (Thomas Dickey)..
292 b039b309 a_main_startup(): isatty() yay fdopen(,"w") nay (A. B., E. E., G.
294 e6ec2b06 THANKS: Andreas Baumann
295 5e808dc1 THANKS: Erich Eckner
296 7cc7fd0a Invent n_O_NOXY_BITS for more O_NO* etc. (Solar Designer)
297 409c5df7 THANKS: Solar Designer
298 62d5947a config.h: no, change [f64eb665], use MIMEE_QP again (Cág)
300 cd212599 Do not honour $TMPDIR if run by root (Solar Designer)
301 3e283d18 Fix semantics of $* to go for *ifs*
302 6d437ab6 FIX i_strdup(), broken since [354fc47e] as of 2017-07-16..
303 c20b6b7c nail.1: WHEN is a mlist a regex (Ivan Tham)
304 bd72268c nail.1: FAQ: Can S-nail git-send-email? (Cág)
305 ffd29558 FIX [0ede309c] as of 2016-12-26! (Ralph Corderoy)..
306 fce7d5ca FIX: LC_ALL/LC_CTYPE/LANG: do not _force_ overwrite of *ttycharset*..
307 16fb7bf7 `environ' unset: report errors (remove respective TODO)..
308 8eb67f95 Add `local' command modifier: alter command to work on block-scope
309 23327af7 n_idec*(), `vexpr': support BASE#number (2 <= x <= 36) notation
310 78727768 "[@fields]@" spec.: support regex in fields, empty body: header
312 ca35643c Add *quote-chars* (simple)
313 429a294d Improve *mime-counter-evidence* deep inspection (Doug McIlroy)..
314 c0fcb67c Introduce *version-hexnum*
315 090819a2 Fix [ab0cd3b8]..
316 8c72989b cc-test.sh: fix test of [ffd29558]..
318 v14.9.5 ("Marsh tit engaged with a peanut"), 2017-10-21
319 -------------------------------------------------------
321 A bugfix release which fixes two bugs which were cast in stone.
322 A few compatibility improvements (AlpineLinux, Solaris).
325 Apologies to Jörg Schilling, a git bug i think it was who caused
326 joining of changesets, loosing a credit, and it had been pushed to
327 [master] before the problem was realized.
329 Credits, in order of commit appearance: Jörg Schilling,
330 Doug McIlroy, Random832, Nick Stoughton and Ivan Tham.
332 We welcome Nick Stoughton and Ivan Tham in THANKS.
334 NOTES, ChangeLog (packager-affine)
335 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
337 - New OPT_USE_PKGSYS option can be disabled to not automatically
338 pick known package system paths (pkg(7), OpenCSW, schily).
344 - The software indeed _never_ dealt with iconv(3) output character
345 set errors (as opposed to invalid input character set byte
346 sequences etc.) for the main message body!
347 And I have missed that when i tweaked our iconv layer a bit!
349 - Fixed a race condition with sigsuspend(2) that i could only see
350 on OpenBSD. config.h offers n_SIGSUSPEND_NOT_WAITPID, by the
351 way, which saves some systemcalls and did not run races, but
352 noone adjusts this file.
354 - Message list specifications gained two new colon modifiers, one
355 can now "search :Ll" to find "Mailing lists"#10.
356 The *headline*#403 format %T now also uses L and l rather than
359 New `addrcodec'#130 subcommand `skinlist' acts like `skin'
360 but stores in *!*#332 *^ERR*#334-EXIST if the address is
361 one of the known "Mailing lists"#10.
363 - `echo'#167 family now supports `vput'#117 and *!*#332 error
364 storage, offering some kind of printf(1) experience, almost.
366 git(1) shortlog (edited)
367 ^^^^^^^^^^^^^^^^^^^^^^^^
369 Steffen Nurpmeso (35):
370 d76fd200 Fully support putenv(3) fallback (Jörg Schilling)
371 ab0cd3b8 FIX iconv for main body part (since EVER!) (Doug McIlroy,
373 8d472b37 FIX sigsuspend(2) race condition (since EVER! Only seen on OpenBSD)..
374 ca045d7d Add is_mlist_mp() and :Ll colon modifiers, and use "Ll" for
376 88a69abf Set termsize after SIGCONT; n_signal(): use sigfillset (Nick
378 f169483d THANKS: Nick Stoughton
379 2f1e46ee `echo' family: support `vput' and *!* error storage
380 22ac50c7 make.rc, make-config.sh: add OPT_USE_PKGSYS (Jörg Schilling)
381 09a8b2ef Even less shell globbing (Ivan Tham)
382 b35ccc6d THANKS: Ivan Tham
383 820d02b4 obs-imap.c: drop dopr(), pr(1) often not available
384 2a05fcd9 main.c, make-config.sh: preparate for tcgetwinsize(3)
385 9feaf8ae `addrcodec': add skinlist subcommand, skin+check whether mlist
387 v14.9.4 ("(5th anniversary) Marsh tit"), 2017-09-18
388 ---------------------------------------------------
390 This is an update feature release but which also ships a furious
391 number of bug fixes, about six of which were pretty serious. It
392 also applies overall trimming, and improves configuration time
393 compatibility on macOS.
395 Thanks to Alexander Harm there is now a macOS Homebrew package.
397 Credits, in order of commit appearance: Paul Vojta, Daniel Lublin,
398 Alexander Harm, Norman Ramsey, Viktor Szépe, Rich Salz,
399 David Čepelík, Ralph Corderoy, Stéphane Chazelas, Aharon Robbins,
402 We welcome Daniel Lublin, Alexander Harm, David Čepelík and
403 Stéphane Chazelas in THANKS.
405 NOTES, ChangeLog (packager-affine)
406 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
408 - Out-of-tree builds have become possible via the new
409 make-emerge.sh script:
411 $ cd /tmp && mkdir build && cd build &&
412 ~/src/nail.git/make-emerge.sh &&
413 make tangerine DESTDIR=.ddir
415 We now have a `citron' make target which is like `tangerine' but
416 does not run the tests.
418 - Configuration with OPT_AUTOCC honours $CC=cc. (Norman Ramsey)
420 - SSL/TLS configuration has been revamped (again) in order to
421 support new possibilities of OpenSSL (and LibreSSL) without
422 ending up and introducing more and more variables.
424 Instead we now have *ssl-config-pairs*#542, a comma-separated
425 list of all options. With e.g. OpenSSL 1.1.xx this will be
426 directly passed through to SSL_CONF_cmd(), so there _anything_
427 can be passed, otherwise we use a builtin parser to map.
428 The new *ssl-features*#546 states what is supported. E.g.:
430 if [ "$ssl-features" =% +ctx-set-maxmin-proto ]
431 wysh set ssl-config-pairs='\
432 CipherList=TLSv1.2:!aNULL:!eNULL:@STRENGTH,\
433 Curves=P-521:P-384:P-256,\
436 wysh set ssl-config-pairs='\
437 CipherList=TLSv1.2:!aNULL:!eNULL:@STRENGTH,\
438 Curves=P-521:P-384:P-256,\
439 Protocol=-ALL\,+TLSv1.1 \, +TLSv1.2'
442 OpenSSL v1.1.xx also introduces an interesting and neat idea to
443 centralize SSL/TLS configuration of (all) programs in a single
444 file. This can be driven via *ssl-config-file*#540 and the new
445 *ssl-config-module*#541 variables, several entries per program
446 are allowed, see *ssl-config-module*#541 for an example.
448 New manual section "Encrypted network communication"#13.
450 - Variables set or unset via -S#76 are now frozen until program
456 - Historical behaviour of *askcc*#348 / *askbcc*#349 has been
457 reintroduced. (Norman Ramsey)
459 A new *asksend*#350 variable will show a final header summary
460 and allows reentering compose mode. Set by default.
462 POSIX mirrors *ask* onto *asksub*#352, so dropped" the former.
464 - `~^'#305 no longer normalizes header names to titlecase.
466 - We no longer generate charset=binary MIME parameters.
467 This was introduced on 2013-01-02 and was i think owed to
468 file(1)s -i output as i failed to find any other reference.
471 - *mime-alternative-favour-rich*#436 now also works for handlers
472 installed via *pipe-TYPE/SUBTYPE*#461. (Viktor Szépe)
474 - v14.9.* series did not generate In-Reply-To: headers!
476 - `alias'#131 now supports high-bit bytes and semicolon.
477 Expect that at some later time the input must be valid according
478 to the locale, though. (Norman Ramsey)
480 - Combinations of *record*#485 could crash because of an
481 unterminated variable function argument list. (Norman Ramsey)
483 - New command `readall'#234 loads an entire file into a variable.
485 *signature*#505 has been obsoleted.
487 - `vexpr'#288 now supports negative arguments for the substring
488 subcommand and adds trim, trim-front and trim-end subcommands.
490 - `!'#121 can be used in send mode.
492 - `~A'#306, `~a'#307, `~I'#316 and `~i'#317 will henceforth expand
493 \t and \n only if *posix*#474 is set.
494 Please use `set'#254 instead (with `wysh'#118, until v15).
496 - New "The mime.types files"#35 type marker: @q ("quiet").
498 git(1) shortlog (edited)
499 ^^^^^^^^^^^^^^^^^^^^^^^^
501 Steffen (Daode) Nurpmeso (90):
502 9becdd01 Fix [32e5c7c2] (MLE: KHT: auto-append / for directories at once..)
503 cc54681e $PAGER: always set (non-existent) $LESS=RXi (Paul Vojta)..
504 49124f13 nail.1: use `~.' in "On sending mail.." (Daniel Lublin)
505 7cd29917 THANKS: Daniel Lublin
506 62f5957f nail.h: unconditionally include inttypes.h (Alexander Harm)..
507 c121f519 THANKS: Alexander Harm
508 f0aeef8d Adjust OpenCSW & pkgsrc paths, drop CONFIG=MEDIUM (Alexander Harm)..
509 19fdc151 INSTALL: tweak INCS and LIBS (Alexander Harm)
510 24199743 make-config.sh: integrate DYLD_LIBRARY_PATH in LD_.. (Alexander Harm)
511 64026f7b make-config.in: also needs .PHONY for MacOS (Alexander Harm)
512 52ddd687 make-config.sh: OPT_{NOMEMDBG,ASAN_*}: reduce cc_maxopt=1 (Alexander
514 f3087a5c Fix **-honour* <-> *recipients-in-cc* for original To: ones
515 2205dc27 Fix: ask for `write' targets of message/rfc822 attachments (again)
516 5cd0f50d Restore historical behaviour of *askb?cc* (Norman Ramsey)
517 80038311 Fix: do not generate charset=binary parameter (Norman Ramsey)..
518 05427cea send.c:sendpart(): extend *mime-alternative-favour-rich* support
520 226c1f26 FIX In-Reply-To: generation, broken since [c13e1205], 2017-06-04!
521 135cbebe makefile: add missing reverse solidus (Norman Ramsey)
522 8a4237d2 `alias': support high-bit bytes and semicolon (Norman Ramsey)
523 22c48009 a_nag_group_lookup(): FIX used case-i?sensitive hash function!
524 1bc65e1b a_amv_var_lookup(): error log on empty environment variable (Norman
526 179b39f3 sendout.c:mightrecord(): FIX: terminate starg list! (Norman Ramsey)
527 c2635714 Add `readall' command
528 999a9dbf `vexpr': substring: support negative offset / length
529 58474b55 `vexpr': add trim, trim-front and trim-end subcommands
530 7ab345ae Allow `!' in send mode?!
531 08305026 Obsolete *signature* (quite some better and more generic ways now!)
532 cd03ec01 Glue ~A,~a,~I,~i \t and \n expansion to *posix*; while here: resort
533 c5a223d8 Introduce @q MIME type marker
534 93a4e38a Rework (usage of) *SSL random handling (Rich Salz)..
535 f2cc9b83 Work around possible Linux getrandom() bugs (David Čepelík)
536 35879445 THANKS: David Čepelík
537 dddff6ef Extend the meanings of *fullnames*..
538 884983a3 Diversify n_PSO_STARTED_ states, gain more cmds via -X
539 ba103b71 Reserve command modifier prefixes "local" and "u"
540 4ff9c046 {make-{config,emerge},cc-test}.sh: no command -v (Norman, Ralph,
542 2a2895f1 THANKS: Stéphane Chazelas
543 24615d82 make-config.sh: accept CC=cc (Norman Ramsey)
544 d6f18b52 Add more support surrounding OpenSSL config stuff++..
545 94bafbc6 Temporarily freeze variables set via -S..
546 bb0d0bf2 Port to SunOS 5.9 (Aharon Robbins)
547 788faabe Support *pipe-message/external-body* access-type=url handlers (Ken
549 02407c15 FIX maildir "yet-exists" hashmap!..
551 v14.9.3 ("Crested tit nibbling sunflower seeds"), 2017-08-03
552 ------------------------------------------------------------
554 This is a bugfix release but which ships some improvements, too.
555 It silently replaces both of v14.9.1 v14.9.2 from earlier this
556 week, which were broken or not entirely fixed.
558 Credits, in order of commit appearance: Felix Fontein, Paul Vojta,
559 Ralph Corderoy, Christos Zoulas, Gavin Troy, Gaetan Bisson.
560 Thanks, Coverity.com.
562 We welcome Christos Zoulas in THANKS.
564 Apologies to Viktor Szépe for the false spelling of his name in
565 the v14.9.0 announcement.
566 And to Gaetan Bisson for not giving credit for [14fbce97]!
568 NOTES, ChangeLog (packager-affine)
569 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
571 - fakeroot support was blindly taken from Debian and broken.
572 (Gavin Troy, Gaetan Bisson)
574 - Base64 output was broken for cases which involved iconv(3).
575 The data is not lost, you can read it with S-nail v14.9.0 and
576 above, and save it somewhere. I know of no other base64 decoder
577 which reads those things correctly, though. We now have tests.
578 Along this i fixed an iconv(3) error which likely caused
579 stateful decoding (like, e.g., for ISO-2022-JP) to fail because
580 of an unnecessary reset of the iconv(3) state machine.
581 Thanks to Gaetan Bisson for mentioning this issue!
586 - In compose mode the MLE allows empty lines again.
588 - We no longer require a writable $HOME#574. Due to false code
589 flow (but but but: with correct comment) a non-writable $HOME
590 entry in /etc/password (i.e., from getpwuid(3)) would lead to
591 a crash. (Felix Fontain; Ralph Corderoy)
593 - Two faulty string operations slipped into the IMAP code,
594 resulting in a crash and a "is-same-host" test that would fail
595 for IMAPS connections like `save'#251 or `copy'#153 because of an
596 implicit IMAP protocol for the target of those operations (thus
597 IMAP != IMAPS). (Paul Vojta)
599 - The MLE tab-expansion will now automatically append a "/" if
600 there is only one possible expansion and that is a directory,
601 saving the user one <TAB>. (Christos Zoulas)
603 The shell expression parser had a bug regarding understood
604 metacharacters (;|&), which in turn could cause an infinite loop
605 in the MLE tab-expansion for, e.g., "move &9 +<TAB>", because
606 the "&" would never have been stepped over.
608 - New `~I'#316 command escape is like `~i'#317 but does not append
611 - `localopts'#203 gained an optional second argument.
612 It is now possible to specify that any macro `call'#139ed
613 will have localopts enabled, and it is possible to fixate the
614 setting so that it cannot be reverted.
616 - *@*#338 should now act completely compatible to the sh(1)ell,
617 thus obsoleting my hysteric warnings in the v14.9.0 announcement.
619 - The `Lreply'#204, `reply'#239, `Reply'#238 series as well as
620 `mail'#206 now manage the error status *!*#332.
621 I.e., there are now errors like *^ERR*#334-DESTADDRREQ,
622 ^ERR-NODATA, ^ERR-PERM and similar. It is not perfect yet,
623 because $DEAD#572 may have been written (with *save*#493) or not,
626 `Lreply' and `reply' have been rewritten rather completely
627 indeed. They join Reply-To: and Mail-Followup-To: dependent on
628 the context (i.e., *reply-to-honour*#491, *followup-to-honour*#397,
629 see "Mailing lists"#10 for the picture), and if they did, use
630 this list as the receivers exclusively. It now honours
631 *recipients-in-cc*#484 even for such addressees. (And now i wonder
632 whether i should have credited Paul Vojta for that.)
634 Also `Lreply' would have crashed for mails with Reply-To: but
635 without *reply-to-honour*#491 set. We now have a test.
637 Note *replyto* is obsoleted in favour of *reply-to*#490.
639 git(1) shortlog (edited)
640 ^^^^^^^^^^^^^^^^^^^^^^^^
642 670aabb6 a_amv_var_check_vips(): FIX code to match comment (Felix Fontein)..
643 3dcdaa83 THANKS: Felix Fontein
644 3745e002 FIX [81d7f4d8] (IMAP: try (hard) to reinstantiate..) (Paul Vojta)
645 33b2834f FIX [81d7f4d8] (IMAP: try (hard) to reinstantiate..) (Paul Vojta)..
646 1cc0d3de Allow non-writable $HOME (Felix Fontain, Ralph Corderoy)
647 32e5c7c2 MLE: KHT: auto-append / for directories at once (Christos Zoulas)
648 e2bb54b7 THANKS: Christos Zoulas
649 f593fc18 make-config.sh: do NOT skip fakeroot paths
650 (Gavin Troy, Gaetan Bisson)
651 4fe971ea FIX [4047a432] possible bound excess in memset()!
652 84efbcab FIX shexp parser regarding metachars (and poss. endless <TAB> loop)
653 14fbce97 FIX: OH! The codebase NEVER supported *mime-encoding*=base64!
655 v14.9.0 ("Long-tailed tit"), 2017-07-16
656 ---------------------------------------
658 This is a major feature release which took about ~22 months (24
659 less two) of development to complete, and which imposed massive
660 changes under the hood, but also quite a lot of user visible
661 changes, including some **backward incompatibilities**.
662 As usual, "s-nail -d" will show obsoletion warnings.
664 We gain noticeable improvements regarding scriptability and its
665 reliability, but also for interactive use cases, especially
666 notable to users is our completely new M(ailx)L(ine)E(ditor) that
667 supports rather real tabulator expansion and program-mode-context-
668 sensitive key bindings.
670 We now support macros with arguments, which can be `shift'ed,
671 a `return' status can be used, and a `vexpr' multiplexer offers
672 some arithmetic and string operations. `commandalias'es are
673 recursive, further command modifier prefixes, like `ignerr', give
674 a hand that we otherwise could not offer. In compose-mode the new
675 `~^' command escape allows some message and attachment access, and
676 can be used, e.g., to implement things like custom headers, and
677 has been especially designed for scripted access via the new
678 *on-compose-splice* and *on-compose-splice-shell* hooks.
680 S-nail will move (more or less) backward-incompatibly to sh(1)ell
681 compatible argument quoting (documented in "COMMANDS"), and an
682 increasing number of commands do support this already: new ones
683 exclusively, some old ones have either been switched (like
684 `localopts'), others -- noticeably `set' -- can be switched to the
685 new syntax with a `wysh' command modifier prefix. E.g.:
688 # Be careful to choose sh(1)ell-style on _entire_ line!
689 localopts yes; wysh set verbose; ignerr eval "${@}"; return $?
691 ? commandalias call echo boo-boo
692 ? commandalias xv call __xv
694 ? commandalias xv '\'call __xv
697 Calling the latter `xv' for `list' will give more detailed command
698 information, including which kind of argument is used.
700 I have not managed to implement the three features i have started
701 this development cycle for, these are thus subject to further
702 development, just like wysh for message-list argument commands to
703 support, e.g., negation, wysh for `if' and consorts, the --
704 terminator to finally overcome the ridiculous requirement to quote
705 entire shell commands filenames for commands like `pipe.
708 Credits, in order of commit appearance: Antonio Radici,
709 Aharon Robbins, Mike Frysinger, Predrag Punosevac, Michael Convey,
710 Hariskar, Rudolf Sykora, Martin Neitzel, Gavin Troy,
711 Salvatore Bonaccorso, Todd C. Miller, Sergey Matveev, Robert Elz,
712 Mantas Mikulėnas, Respiranto, Jens Schleusener, Walter Alejandro
713 Iglesias, Ralph Corderoy, David Levine, Lyndon Nerenberg,
714 Thomas Dickey, Afan, Justin Ellingwood, Ingo Schwarze,
715 Viktor Szépe, Gaetan Bisson, Juan RP, William Yodlowsky,
716 Hilko Bengen, Matthew Dillon, Colin Watson, Donald Mugnai,
717 Stephen Isard, Jürgen Daubert, Sven Neuhaus, trondd, Ismael Bouya,
718 Felipe Gasper, Paul Eggert, Dr. Werner Fink, Ken Hornstein,
719 Noel Chiappa, Random832, Doug McIlroy, Baptiste Daroussin,
720 Riccardo Ductor, Pietro Cerutti, Jörg Schilling, rain1, Xin LI.
722 We welcome Antonio Radici, Mike Frysinger, Predrag Punosevac,
723 Michael Convey, Rudolf Sykora, Todd C. Miller, Robert Elz,
724 Jens Schleusener, Walter Alejandro Iglesias, Thomas Dickey, Afan,
725 Justin Ellingwood, Viktor Szépe, Juan RP, Matthew Dillon,
726 Colin Watson, Donald Mugnai, Sven Neuhaus, Ismael Bouya,
727 Felipe Gasper, Paul Eggert, Dr. Werner Fink, Ken Hornstein,
728 Noel Chiappa, Random832, Doug McIlroy, Baptiste Daroussin,
729 Riccardo Ductor, Pietro Cerutti, Jörg Schilling, rain1, and
732 Apologies: Sergey Matveev.
733 Members of the Roff community which await progress.
735 NOTES, ChangeLog (packager-affine)
736 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
738 * This release brings some backward incompatibilities, outlined
739 in the following. Most users will not be affected, and we have
740 added a lot of compatibility cruft, but that will vanish in v15.
743 * The configuration and build system has changed.
744 Packagers have received updated package files.
746 o Anything which was WANT_xy before is now OPT_xy, and
747 compiled-in paths and values, like PREFIX or PAGER, have
748 gained a VAL_ prefix (thus VAL_PREFIX and VAL_PAGER).
750 This is _not_ true for non-persistent or environmental values,
751 e.g., DESTDIR, CC, etc., and also not for the overwritable
752 program variables during configuration, e.g., $awk.
754 o SENDMAIL -> VAL_MTA, SENDMAIL_PROGNAME -> VAL_MTA_ARGV0,
755 MAILSPOOL -> VAL_MAIL.
756 And NAIL -> VAL_MAILX, though this is still a lie.
758 o The make system now needs config..build..install or
759 all..install or tangerine (config..build..test..install).
760 Some constants which some experts may want to fine-tune have
761 been moved to config.h. Usual adjustments+doc via make.rc.
763 o The `build' phase can be parallelized by setting the $MAKEJOBS
764 environment variable, e.g., "make MAKEJOBS=-j4 build".
765 Note this variable is not tracked in the configuration.
768 o Unless DESTDIR is set an uninstallation script will be
769 installed along with the rest (see INSTALL file for more).
771 o Set the new OPT_CROSS_BUILD to avoid feature runtime tests,
772 only compile- and link-availability will be tested. (Juan RP)
774 o VERBOSE is implemented straight, but must be given at
775 configuration time in order to become honoured.
778 o ADDCFLAGS / ADDLDFLAGS -> EXTRA_CFLAGS / EXTRA_LDFLAGS.
780 o The LD_LIBRARY_PATH etc. building processes will skip any path
781 which contains the string "fakeroot". (Hilko Bengen)
783 o We honour a set $SOURCE_DATE_EPOCH#591 environment variable to
784 an extend that allows reproducible tests, which is why the
785 repository gained a [test-out] branch with some expected plain
786 text outputs. (reproducible-builds.org; Colin Watson)
788 The new *log-prefix*#424 variable aids in improving the
789 reproducibility of error messages.
791 o These are upward compatible changes.
793 * "make OPENSSL_API_COMPAT=0x10100000 all" should work.
795 * Internal and environment variables are now explicitly _defined_
796 and _tracked_ after variable handling has been rewritten
799 o This means that, e.g., "$ password=NOT_SECRET s-nail" will
800 **NOT** work no more, since *password*#459 is an internal
803 o But if you do, e.g., "? set TMPDIR=~/tmp", then this will
804 also be reflected in the program environment (it is an
805 environment variable) and thus affect child processes.
807 o Therefore we no longer have `setenv' and `unsetenv'.
809 o To integrate any other environment variable transparently
810 into our variable management, the new command `environ'#175
811 needs to be used, e.g., "? environ set NEWVAR=value" or
812 "? environ link EXISTINGVAR".
814 - -H#65 and -L#68 have been decoupled:
815 it used to be -e#62 -L#68 instead!
817 - *NAIL_{HEAD,TAIL}* have been obsoleted in favour of
818 *message-inject-head*#432 and *message-inject-tail*#433.
820 *NAIL_HIST{FILE,SIZE}* have been obsoleted in favour of
821 *history-file*#406 and *history-size*#409.
823 *NAIL_EXTRA_RC* has been obsoleted in favour of
824 *mailx-extra-rc*#427.
826 *batch-exit-on-error* has been obsoleted by *errexit*#387, which
827 works just like the POSIX sh(1)ell "set -e" construct; the
828 `ignerr'#113 command modifier (`-' for command escapes in compose
829 mode, and see below) can be used to ignore command errors even
830 then. (This will remain even if we at some later time will
831 support at least some of the sh(1) constructs which "swallow"
832 failures with set -e.)
834 *bsdannounce* is obsolete, the feature is integrated in
835 *header*#402 as this is much more useful. (This is however also
836 dependent upon the also new but well-known $POSIXLY_CORRECT#589
837 <> *posix*#474, but that is just how it is; these affect more
838 behaviour, and increasing.)
840 - Colour support has been changed backward in- and upward (from
841 user interface side) compatibly, see the manual section
842 "Coloured display"#18.
844 + New commands: `colour'#148 and `uncolour'#149.
845 You can define context-sensitive, terminal-capability-
846 sensitive settings, e.g.:
848 if terminal && [ "$features" =% +colour ]
849 colour iso view-header ft=bold,fg=magenta,bg=cyan
850 colour 256 view-header ft=bold,fg=208,bg=230 subject,from
851 colour mono view-header ft=bold
852 colour mono view-header ft=bold,ft=reverse subject,from
855 + The variable *colour-pager*#373 defines whether colour and font
856 attribute sequences should be generated when viewing something
859 + Set the variable *colour-disable*#372 to turn colour off
860 without affecting established settings.
862 + It is deduced via termcap(5) (see below) whether the terminal
863 supports colors, e.g., "$ s-nail -Stermcap=Co#256".
864 This is also true if we don't have termcap support.
866 + Support for 256-colour terminals. (Gavin Troy)
868 - `source'#266 series support shell pipes if the last character
869 of the "filename" ends with a vertical bar |, e.g.,
871 ? source 'gpg -qd ~/.s-nailrc-private.gpg |'
873 - Shell pipes are also supported as targets for `move'#216,
874 `copy'#153 etc., yet unfortunately not with via a sh(1)ell token
875 parser, so that the target still has to be a single argument.
877 ? copy . '| cat; echo huhu'
879 - Support for custom headers via the new `~^'#305 compose-mode
880 command escape and in addition, or alternatively, with the
881 internal variable *customhdr*#377, which also can be covered by
882 `localopts'#203. (Sergey Matveev)
884 + Support of $ORGANIZATION has been dropped.
886 + Command escape `~e'#311 supports _any_ header.
888 + Command escape `~^'#305 supports _any_ header.
890 - New -:#53 command line option can be used to more easily select
891 which startup files should be loaded, e.g., -:/ loads none.
894 - `account'#128s and *folder-hook*#394s now have `localopts'#203
897 - A first simple form of compose-mode hooks has been implemented:
898 *on-compose-enter*#452, *on-compose-leave*#453 and
899 *on-compose-cleanup*#451 can be set to macros which get invoked
900 at appropriate times.
901 For the `resend'#243 series there is *on-resend-enter*#457 and
902 *on-resend-cleanup*#456: this is very likely to change once
903 true message access is possible even in this mode.
905 An even more powerful mechanism is available via the also new
906 *on-compose-splice*#454 and *on-compose-splice-shell*#455 hooks.
907 These are executed in child processes and communicate with the
908 parent via their standard input and output, and therefore can
909 do anything and act as if they were the user.
911 `localopts'#203 are enabled and cannot be disabled (and extend
912 until the message is sent).
913 (Jens Schleusener, Rudolf Sykora)
915 ? set on-compose-splice=ocs
918 echo Splice protocol version is $ver
920 read hl; vput vexpr es substring "${hl}" 0 1
922 echoerr 'Failed to read header list, bailing out'
924 elif [ "$hl" @i!% ' cc' ]
925 echo '~^header insert cc Diet is your <mirr.or>'
926 read es; vput vexpr es substr "${es}" 0 1
928 echoerr 'Failed to insert Cc:, bailing out'; echo '~x'
933 - "The .netrc file"#37
935 + gained support for comments.
936 (Walter Alejandro Iglesias, Ralph Corderoy)
938 + `netrc'#219 now has a "load" subcommand.
940 + the new *netrc-pipe*#446 obsoletes OPT_AGENT and
941 *agent-shell-lookup*, and can be used to load an encrypted
944 ? set netrc-lookup netrc-pipe='gpg -qd ~/.netrc.gpg'
946 I.e., this is in usual .netrc syntax and thus possibly much
947 nicer than saying "? source 'gpg -qd ~/.credentials.gpg |'".
949 - termcap(5) / terminfo(5) support has been changed backward in-
950 and upward (from user interface side) compatibly, please read
951 "On terminal control and line editor"#17.
953 + OPT_TERMCAP is by default enabled.
954 The new, by default enabled, configuration option
955 OPT_TERMCAP_VIA_TERMINFO can be used to (try to) use
958 + The variable *termcap*#554 can be used to freely define or
959 override terminal capabilities, and *termcap-disable*#556 will
960 disable interaction with the chosen library, leaving only
963 To use the so-called ca-mode on supporting terminals,
964 effectively turning S-nail into a fullscreen application,
965 *termcap-ca-mode*#555 must be set.
967 + The built-in line editor has been rather completely rewritten
968 to be the Mailx-Line-Editor (OPT_MLE, default yes), and
969 supports wide glyphs (if possible), infinite line lengths
970 (2 GB) and more. Tabulator expansion is no longer an option
971 (but needs fnmatch(3)).
973 + Optionally (OPT_KEY_BINDINGS, default yes) it has become
974 possible to freely define key bindings for the MLE via the new
975 `bind'#137 and `unbind'#138 commands. These key bindings can
976 make use of termcap(5) and/or terminfo(5) names. The MLE will
977 install a set of default bindings (unless there is a set
978 *line-editor-no-defaults*#423), more so with OPT_TERMCAP,
981 Sufficient support provided, one can now, e.g., type "p " and
982 then collect the message numbers to type, scrolling forward
983 and backward via key-bindings, without loosing the line
984 content, then commit the final line.
986 + OPT_EDITLINE and OPT_READLINE support have been dropped.
987 The new MLE should not miss anything. Does it?
988 Tip: in an UTF-8 locale try "? !touch /tmp/hall{,öchen}" and
989 then autocomplete that: once, then ^Q, and again.
991 - `source'#266 can be used in `call'#139ed macros.
992 What sounds so innocent replaced an entire machinery and got rid
993 of a brilliant idea of Kurt Shoens from the 70s, but which never
994 worked with Nail/Heirloom extensions, namely macros, and in the
996 Accompanying this -X#82 can (dig multiline arguments and can) be
997 used to define macros and run them etc. Should work:
999 $ s-nail -X'define x {' -Xversion -Xx -X'}' -X'call x'
1000 $ s-nail -X'source \' -X'"echo version|"' -Xx
1002 Macros can be `undefine'#158d from within themselves, and re-
1003 `define'#157d. It is still not possible to define macros
1004 from within macros, and/or have inner macros, not to talk
1005 about local scoping or anything more sophisticated such.
1007 - -u#79 / $LOGNAME#580 ($USER) handling has been redefined,
1008 and "-u USER" is now exactly the same as "-f %USER", and
1009 $LOGNAME (and $USER) is actively set to the active user. (Afan)
1011 $LOGNAME#580 is POSIX standardized and henceforth used and
1012 preferred over $USER, which came from BSD. (Todd C. Miller)
1014 - In the future (at least non-message-list) argument handling will
1015 be changed backward-incompatibly to be sh(1)ell compatible (and
1016 thus POSIX standardized), see "Shell-style argument quoting"#24.
1017 New commands use it already today (`bind'#137, `colour'#148,
1018 `headerpick'#194), some others (most importantly, `set'#254) can
1019 be forced to do so via the new `wysh'#118 command prefix, as in:
1021 ? wysh set message-inject-tail=$'\n--steffen'
1022 ? bind base $'\cA,\x61' 'echo control-A and small a'
1024 - We now actively manage *umask*#561: 0077 by default, but an
1025 empty string will use the setting that is active upon startup.
1026 Just like changes to (known) environment variables, this setting
1027 will also be inherited by any child process.
1028 (Walter Alejandro Iglesias)
1030 - Anything SENDMAIL / *sendmail*-ish has been renamed to *mta*#440,
1031 *mta-arguments*#441, *mta-no-default-arguments*#442 and
1034 The reason is that in v15 we won't even have *smtp*: it is just
1035 another form of MTA, and thus obsolete by itself.
1036 Note that *mta-arguments* is now parsed via the shell-token
1037 parser, so the following ends up exactly as desired.
1039 ? set mta-arguments='-t -X "/tmp/my log"'
1041 For now we support a hack that understands a file:// URL in
1042 *mta*, too, but that is also the default if there is no protocol.
1043 E.g.: "? set mta=smtp://a:b@xy.z"
1045 - The "spamd" *spam-interface*#524 is obsolete. I haven't tested
1046 it since my main machine died, it is error prone since it assumes
1047 internals of the spamassassin wire protocol, and there never was
1048 a speed improvement over "spamc". (However it could react upon
1049 the "is-spam" state of a message, which "spamc" doesn't allow.)
1051 - The new *inbox*#417 variable will henceforth be looked up when
1052 searching for a primary system mailbox (as in "? File %"),
1053 followed by the usual $MAIL#581 and compile-time defined local
1054 mailspool search. (Stephen Isard, Jürgen Daubert)
1056 - The semantic of -a#55 and `~@'#303 have been changed, and both
1057 commands now use the same syntax:
1059 -a file[=input-charset[#output-charset]]
1061 - New "failinvaddr" keyword for *expandaddr*#389.
1063 - We finally "can" the so-called (by myself) "Dr. Problem" (a bit):
1066 $ </dev/null s-nail -d:/ -sTrödler 'Dr. D. Iet <z@a.k>' 2>&1 |\
1068 s-nail: >>> To: "Dr. D. Iet" <z@a.k>
1070 This can be done via the new `addrcodec'#130, too, note this
1071 supports multiple modes (and the `vput'#117 command modifier):
1073 $ echo 'addrcodec e Dr. Diet <to@fu.soj> Curd' | s-nail -#:/
1074 "Dr. Diet Curd" <to@fu.soj>
1076 - All commands with the string "codec" in their name use different
1077 argument quoting, namely none at all, please read
1078 "Raw data arguments for codec commands"#25.
1079 This means that `urlcodec'#283 (and `imapcodec'#619) has
1080 slightly changed semantics.
1081 And, while here: there is a new `shcodec'#256, too.
1083 - We gained "Command modifiers"#21: `\'#112 (avoid expansion of
1084 `commandalias'#150es), `vput'#117 (store result in variable),
1085 `ignerr'#113 (ignore an error of the following command, even
1086 if the new *errexit*#387 is set), `wysh'#118 (use shell-style
1089 $ echo 'vput cwd resvar;echo $resvar' | s-nail -#:/
1090 /home/steffen/src/nail.git
1092 And the usual sh(1) stuff: `return'#249, `shift'#260, `eval'#177,
1093 plus a `xcall'#292 stack-avoidance optimization (to be used in
1094 place of a `call'#139 which would be the last called command).
1095 And an "expr(1) like thing", yet simple, `vexpr'#288.
1097 $ echo 'vexpr + 1 2' | s-nail -#:/
1098 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000011
1100 $ echo 'vput vexpr resvar + 1 2;echo $resvar' | s-nail -#:/
1103 We actually start walking (*?*#331, *^*#333).
1105 ? vput vexpr res regex 'bananarama' 'Bana(.+)' '\$1\$0'
1106 ? echo $?/$^ERRNAME :$res:
1108 ? vput vexpr res iregex 'bananarama' '(.+)rama' '\$1\$0'
1109 ? echo $?/$^ERRNAME :$res:
1110 0/NONE :bananabananarama:
1112 The command `vpospar'#289 can be used to manage the stack of
1113 positional parameters, i.e., much like "set --".
1114 It also offers the possibility to save and restore the stack to
1115 and from variables. Etc.
1117 Btw., to contact the maintainer (make.rc variables
1118 VAL_CONTACT_WEB and VAL_CONTACT_MAIL):
1120 ? echo $contact-web; eval mail $contact-mail
1122 - `if'#200 no longer performs automatic number conversion, we
1123 use the explicit -lt, -gt etc. syntax of the sh(1).
1124 Note: `if' will change to be almost identical to sh(1) if(1),
1125 so please ensure proper test bracketing, even if it is less
1128 Moreover, the default string comparison mode has changed to
1129 case-sensitive, just like in the shell. This is because in the
1130 future this crux with trigger characters will vanish and `if'
1131 etc. will simply slurp in already expanded shell tokens, it will
1132 act like the shell in that respect. We have modifiers, though,
1133 yet only "@i" for case-insensitivity, also for regex matches:
1136 i=`LC_ALL=C.utf8 s-nail -:/ -# -X '
1138 \if [ "${ttycharset}" @i=% utf ]
1142 \if [ "${#}" -gt 0 ]
1143 \wysh set LC_ALL=${1}
1145 \eval xcall cset_test "${@}"
1149 \call cset_test C.UTF-8 POSIX.utf8 POSIX.UTF-8 \
1150 en_EN.utf8 en_EN.UTF-8 en_US.utf8 en_US.UTF-8
1152 [ $? -eq 0 ] && UTF8_LOCALE=$i
1154 Please note the `eval' in 'eval xcall cset_test "${@}". This is
1155 a difference of S-nail/mailx and the sh(1)ell that will remain,
1156 as documented in "COMMANDS"#20: whereas the shell implements
1157 a language and performs standardized expansions on the line
1158 until finally the command is called, S-nail will decide the type
1159 of command line parsing dependent on the seen command, and will
1160 then perform a single expansion. Therefore "${@}" will expand
1161 to multiple arguments if $# is greater 0, but it will expand to
1162 the empty string otherwise, which is not furtherly expanded away
1163 since it is meaningless like it is in the shell: therefore $#
1164 will be 1 (the empty string) not 0.
1166 - Using an explicit proto:// prefix should get you the desired
1167 thing apart of *newfolders*#447, e.g.:
1169 ? File maildir:///tmp/x.mdir
1170 ? copy * file:///tmp/x.mbox
1172 - New variable *record-files*#486 can be set to extend the meaning
1173 of *record*#485. *record-resent*#487 was there already.
1175 - New variable *ifs*#413 acts a bit like the sh(1)ell's $IFS for,
1176 e.g., the new `read'#233 command.
1178 There is a `readctl'#235 command which can be used to manage
1179 the active channel used by `read'#233.
1181 - The `~' alias for `call'#139 is gone.
1183 - `mimetype'#208 only allows specification of a single type per
1184 call, on the other hand no need to quote that.
1186 - `mimeview'#212 must now be used explicitly to look at any
1187 non-text MIME part, for normal display etc. purposes we only
1188 support "copiousoutput"#606 MIME handlers.
1190 - New *socks-proxy*#523 can be used to proxy all network traffic
1191 over a SOCKS5 proxy. (Gaetan Bisson)
1196 - The manual has seen another major overhaul, all the variables
1197 are now documented in a single, sorted list, and many
1198 clarifications should have been added. I hope it has become
1200 (Predrag Punosevac, Michael Convey, Hariskar, Rudolf Sykora,
1201 Respiranto, Thomas Dickey, Donald Mugnai)
1203 - To support RFC 1524 a.k.a. .mailcap files (see below) many
1204 "trigger"-characters have been added for *pipe-TYPE/SUBTYPE*#461,
1205 which may (rarely) affect existing values.
1206 The .mailcap support itself is not yet implemented.
1208 - *mime-counter-evidence*#437 gained bit 4 (perform proper in-depth
1209 content inspection as necessary; set to 0xE for all bits).
1212 - Maildir paths are now created recursively as necessary.
1215 - -M#69 and -m#70 options have been added to enforce a special
1216 send mode that will flag standard input / the given file with
1217 the specified / detected MIME 'Content-Type:'. This can be used
1218 to directly send, e.g., HTML log output.
1219 (Viktor Szépe, Ralph Corderoy)
1221 - Disallow symlinks on writable files. Note this requires
1222 O_NOFOLLOW support for the operating-system-call open(2), but
1223 which has been standardized a long time ago.
1226 - `retain'#248, `ignore'#201 etc. now differentiate in between
1227 From (the From: header) and From_ (the MBOX ident).
1229 In fact we now have a new `headerpick'#194 command which
1230 is a multiplexer for all retain and ignore lists used, call it
1231 without arguments to see the current setting(s).
1232 In v15 only `headerpick' and the standard-imposed wrappers
1233 `retain' and `ignore' will remain, all other wrappers will
1234 vanish. Regular expressions can now be used if available:
1237 headerpick type retain blahblahblah cc date from \
1238 mail-followup-to message-id openpgp reply-to subject to \
1240 #headerpick type ignore currently covers no fields
1241 #headerpick save retain currently covers no fields
1242 headerpick save ignore '^Original-.*$' '^X-.*$' '^DKIM.*$'
1243 headerpick forward retain cc date from list-id \
1244 mail-followup-to openpgp reply-to subject to
1245 #headerpick forward ignore currently covers no fields
1247 - `top'#275 has been rewritten completely, `Top'#274 is new.
1248 It uses a built-in set of retain/ignore headers, but it is
1249 possible to register a custom set via `headerpick'#194.
1250 Also, *toplines*#557 has been extended a bit and the new
1251 *topsqueeze*#558 variable may pimp your `top' experience.
1253 ? headerpick top retain add subject
1255 [-- Message 1 -- 87 lines, 4791 bytes --]:
1256 Subject: Re: I can't dist to myself
1259 3.22. bounce_delivered
1261 - `features' has been dropped, `version'#287 extended.
1263 - The *prompt*#476 handling has changed: we lost the capability to
1264 expand \?, \@ and \$, instead new "private" variables *?*#331,
1265 *account*#342, *mailbox-resolved*#426 and
1266 *mailbox-display*#425 have been introduced, and the prompt
1267 is completely shell expanded (thus twice with `wysh' or in v15),
1268 as if dollar-single-quote quoted. We do support the reverse-
1269 solidus escaped bracket notation for embedding characters which
1270 should not be counted when calculating the width of the prompt.
1271 The `colour'#148 command has a slot for the prompt colour.
1272 We gained *prompt2*#477 as a second level prompt.
1276 prompt='?\${?}!\${!}[\${account}#\${mailbox-display}]? '
1278 - The filename "-" can be used as a receiver, e.g.,
1280 $ echo Hey,\ you | s-nail -:/ -Sexpandaddr -sUB -
1282 - The -s#77 command line option, the `~s'#324 command escape
1283 as well as the corresponding slots of `~^'#305 will actively
1284 strip [\r\n] from their value (Debian #419840).
1286 - New `read'#233 and `echoerr'#168 commands, mostly for
1287 *on-compose-splice*#454.
1288 But also `echon'#169 and `echoerrn'#170, which do not write
1291 - New variable *r-option-implicit*#483 may be helpful to those
1292 who regulary need the functionality of the -r#75 command
1293 line option. (Felipe Gasper, Martin Neitzel)
1295 - By using new "pseudo-URLs" one can automatize the use of S/MIME
1296 keys / (certificates / intermediate include certificates) with
1297 passwords. E.g., to drive bob@exam.ple, set
1298 *smime-sign-cert-bob@exam.ple* to the private key / certificate
1299 pair as usual, the password lookup will then be performed for
1300 bob@exam.ple.smime-cert-key, bob@exam.ple.smime-cert-cert and
1301 bob@exam.ple.smime-include-certs.
1302 Like this the password can be stored in an encrypted .netrc file
1303 when *netrc-lookup*#445 and *netrc-pipe*#446 are set, or it may
1304 be stored in an encrypted resource file that has been loaded via
1305 `source'#266 as a simple *password*#459 variable.
1307 Note that the prompting that happens as a last resort of
1308 password lookup will still interfere with a possibly running
1309 $PAGER#587 instance, dependent on the setting of *crt*#376, of
1310 course. Proper job control handling and recognizing that we are
1311 running $PAGER when doing that prompt is a TODO for v15. Sorry.
1313 - Some commands, like `set'#254, `help'#197, `list'#202,
1314 `mlist'#210 etc., now react upon the setting of *verbose*#564
1315 and(/or) *debug*#380.
1317 - `write'#291 uses iconv(3) as appropriate.
1319 - *mbox-rfc4155*#429 has first been dropped, and was then
1320 reintroduced with different semantics. Because, it can be
1321 helpful if a messed up MBOX is read, in which case we henceforth
1322 will warn you and point you to this:
1325 \localopts yes; \wysh set mbox-rfc4155;\
1326 \wysh File "${1}"; \eval copy * "${2}"
1328 ? call mboxfix /tmp/bad.mbox /tmp/good.mbox
1330 P.S. Here you see how weird the current thing still is, in v15:
1333 localopts yes; set mbox-rfc4155; File "${1}"; copy * -- "${2}"
1336 And also in v15 we will not apply (proper) so-called MBOXO
1337 quoting, but instead (simply MIME) re-encode mail messages.
1339 - `call_if'#140 is new and, different to "? ignerr call", silent
1340 and not messing with the return status.
1342 - The new *smime-ca-flags*#509 and *ssl-ca-flags*#536 can be used
1343 to fine-tune X509_STORE_set_flags(3) a.k.a the X509 CA
1344 certificate verification.
1346 ? set ssl-ca-flags=partial-chain
1347 ? wysh set smime-ca-flags="${ssl-ca-flags}"
1349 Also, *ssl-curves*#545 for TLSv1.3.
1351 - Socket connections use TLS S(erver)N(ame)I(ndication) as
1352 appropriate (RFC 7817).
1354 - `alternates'#133 checks arguments and supports `vput'#117.
1355 It by default no longer replaces but appends alternates, unless
1356 *posix*#474 mode is active. There is a new `unalternates'#134
1357 command to remove alternates.
1359 - A new `charsetalias'#143 command. (Pietro Cerutti, mutt#3925)
1361 - New commands `filetype'#181 and `unfiletype'#182: in the future
1362 we will no longer know any builtin filetypes, in fact we already
1363 simulate .gz etc. via the new mechanism as necessary:
1366 bz2 'bzip2 -dc' 'bzip2 -zc' \
1367 gpg 'gpg -d' 'gpg -e' \
1368 gz 'gzip -dc' 'gzip -c' \
1369 xz 'xz -dc' 'xz -zc' \
1370 zst 'zstd -dc' 'zstd -19 -zc' \
1371 zst.pgp 'gpg -d | zstd -dc' 'zstd -19 -zc | gpg -e'
1373 - `~<'#300 now offers a "- [HERE-delimiter]" mode for pasting etc.
1376 - `exit'#178 and `quit'#232 take an optional exit status.
1377 (That is not fixated yet, though.)
1379 - We have a useful -h / --help output. (Doug McIlroy)
1381 - *encoding* obsoleted in favour of new *mime-encoding*#438, which
1382 now defaults to base64.
1384 - *allnet*#344 now works (broken since nail 10.00, 2002-09-29).
1386 git(1) shortlog (abbreviated)
1387 '''''''''''''''''''''''''''''
1389 f01291d extract_date_from_from_(): dig more invalid MBOXes (Antonio Radici)..
1390 df8768b Add *mime-counter-evidence* bit 4 (Aharon Robbins)..
1391 d3fe980 Ftmp(): drop "mode" argument (not wrong: Mike Frysinger)..
1392 86159db nail.1: we support searching, really (Predrag Punosevac)
1393 5b61a08 nail.1: talk about address lists (again) (Michael Convey)..
1394 0eeffc4 nail.1: try improve states / MBOX etc. relation (Michael Convey)
1395 43ea039 nail.1: what is an environment variable (Michael Convey)
1396 13e0804 nail.1: fix typo (Hariskar (archlinux Wiki))
1397 03d6af5 nail.1: more on sortability (Rudolf Sykora)..
1398 4da9043 Not "binary", but "boolean" variables! (Predrag Punosevac)..
1399 c85f56d Support :d specifier for at least `from' (Martin Neitzel)..
1400 b12e1ed Be more friendly when composing mails (Martin Neitzel)..
1401 b50eac0 nail.1: use display/show not type/print (Michael Convey)..
1402 6feafaf Add `search' alias for `from' (Predrag Punosevac)
1403 a4e2612 Support 256-colour terminals (Gavin Troy)
1404 8655aff Error framework: print UAGENT prefix (ident in pipes; Salvatore
1406 e96baaa Introduce $LOGNAME, the POSIX equivalent of $USER (Todd C. Miller)
1407 76e6364 Add `customhdr' (Sergey Matveev)..
1408 ad58c91 Support *customhdr*, too (Sergey Matveev)..
1409 6322e0a Support _any_ user header via ~e (Sergey Matveev)..
1410 5d52578 Add -: command line option (Robert Elz)..
1411 53b5f07 README: use git(1) --single-branch (Mantas Mikulėnas)
1412 420131f Fix mispelling: can|to be send->sent (Respiranto (archlinux Wiki))
1413 d6902e1 Add *on-compose-{enter,leave}* hooks (Jens Schleusener, Rudolf
1415 abf2e5d .netrc: support comments (Walter Alejandro Iglesias, Ralph Corderoy)..
1416 37e0c26 nail.1: .netrc comma separator was in original Berknet parser! (Ralph
1418 40522c3 nail.1: use -v option to cat(1) if available (Thomas Dickey)
1419 d8f7cd7 (BWDIC!) Redefine -u / $LOGNAME / $USER (Afan)..
1420 e337e00 Support expansions in $MAIL!; more on `account's (Afan)..
1421 d596d74 Compare *newfolders* case-insensitively (Justin Ellingwood)..
1422 57744f9 Redefine *folder* / getfold->folder_query() / *HOME* (Justin
1424 3c57c83 n_path_mkdir(): create recursively as necessary (Justin Ellingwood)
1425 0bbe981 nail.1: fix spelling errors as by igor(1) (Ingo Schwarze)
1426 f1a775b Add -M and -m options (Viktor Szépe, Ralph Corderoy)..
1427 1bd8e48 Add *umask*, and set actively (Walter Alejandro Iglesias)..
1428 6b1cd93 Now with *umask*, just drop fchmod(2)++ calls (Walter Alejandro
1430 ba22166 Change make targets; add $MAILJOBS; don't track $DESTDIR (Gaetan
1432 cd244b1 Add WANT_CROSS_BUILD make.rc option (Juan RP)..
1433 95141f6 Tweak VERBOSE handling (William Yodlowsky)..
1434 d74a18a mk-conf.sh:path_check(): skip any "fakeroot" path (Hilko Bengen)
1435 10990e4 Add n_O_NOFOLLOW, disallow symlinks for writable files (Matthew
1437 df4954c Add $SOURCE_DATE_EPOCH (reproducible-builds.org; Colin Watson)
1438 dc92f2c savedeadletter()->sendout.c; tweak POSIX compliance (Ralph Corderoy)
1439 20f3cd2 nail.1: more explicit `set' references instead of saying 'Set' (Donald
1441 2d53b46 url_parse(): better take better care for path parts (Stephen Isard)..
1442 21f0eaa mk-conf.sh: find terminfo on Sun (Thomas Dickey)..
1443 e4ddaa8 Change n_iconv*() protos, add enum n_iconv_flags (Ralph Corderoy)..
1444 1587069 FIX [44cec1f] (Fix "address" message specifications (John Dodson))..
1445 e40e181 nail.1, nail.rc: set *sendwait* by default (Ralph Corderoy)
1446 7adcf99 `write'++: !interactive: urlxenc() attachment paths (Ralph Corderoy)..
1447 b14aae7 `write'++: !interactive:.. But now, really (Lyndon Nerenberg, David
1449 5270bf1 Simplify *folder* (implicit trail solidus) (Stephen Isard, Ralph
1451 a638bcf Add *typescript-mode*, set it for -# (Ralph Corderoy, Martin
1453 053e19f Add *inbox* (Stephen Isard, and Jürgen Daubert)..
1454 20e3240 Add OPT_ALWAYS_UNICODE_LOCALE (Predrag Punosevac)..
1455 14b5a3a Make combinetime() overflow safe (Vincent Lefevre)..
1456 7a657d9c cc-test.sh: add S/MIME disproofs via smime(1) (Sven Neuhaus)..
1457 ae86c884 cmd1.c:__hprf(): compensate for add. bytes of UTF-8 seq.(s) (Martin
1459 975e6869 (BWDIC!) Only rm sysboxes, unless *posix* (Walter A. Iglesias,
1461 81e33751 Throw away file_expand() (Ismael Bouya)..
1462 5ae556f8 Add *r-option-implicit* (Felipe Gasper, Martin Neitzel)..
1463 33709163 nail.1: some more words for *inbox*, and such sort (Stephen Isard)
1464 88c19049 mk-release.inc: place OpenPGP signatures last (learned from Paul
1466 0ede309c Rudely fix the RFC 5322 dot-atom, the "Dr. Problem" (Dr. Werner Fink)
1467 f797c27e FIX privsep.c, yes, vulnerability (wapiflapi)..
1468 f2699449 FIX privsep.c vulnerability, II (forgot hostname!) (wapiflapi)
1469 303d46cd FIX [3d7835fc] aka `~^' attachments, especially Content-ID: (Ralph
1471 4ce4eb55 privsep.c: and just verify the box is also in CWD (wapiflapi)
1472 25d9e6e2 Generate Content-ID: as applic. (Ralph Corderoy, Ken Hornstein, David
1474 6409c886 nail.1: clarify/FIX doc. of \cX (Noel Chiappa, Random832)..
1475 5a1c023c nail.1: furtherly clarify doc. of \cX (Doug McIlroy)..
1476 d33294c2 mk-release.inc: use %B for $DATE_MAN (Baptiste Daroussin)..
1477 eafa9411 (BWDIC!) Defaults for *datefield{-markout-older}* (Debian #855582;
1479 5ab93627 MLE: set FEXP_NOPROTO for mle-complete expansions (Ralph Corderoy)
1480 ada72661 ~<: add "- [HERE-delimiter]" for pasting etc. (Ralph Corderoy)
1481 d4d46c42 Add `charsetalias', and use it (Pietro Cerutti, mutt#3925)
1482 65e2b75f Redefine VIP handling of variables (Ralph Corderoy)..
1483 162cafb7 *mime-counter-evidence*, bit 4: allow "soft" controls (Jörg
1485 90861930 Readd removed fflush()/fseek() in between read and write..
1486 [That should credit Jörg Schilling indeed]
1487 aae47707 Tweak previous, and include O_CREAT in "a+" (Jörg Schilling)..
1488 3e4441f8 a_main_usage(): new synopsis (Doug McIlroy)
1489 8f61025b FIX icase hmaps (`charsetalias', `filetype', `mlist') (rain1)
1490 2e6a811d a_termcap_init_var(): numerics not necessarily decimal (Thomas
1492 9d58267f config.h+: add n_PATH_DEVNULL, use it instead of hardcoding (Xin LI)
1493 8075cf00 Support *socks-proxy* (SOCKS5) (Gaetan Bisson)
1498 The complete changelog of commits in between two versions OLD and
1499 NEW can be inspected by using the git(1) `log' command:
1501 $ git log --reverse --topo-order --abbrev-commit OLD..NEW
1502 # Only topic branch headers (--no-merges for content commits only):
1503 $ git log --oneline --reverse --topo-order --merges OLD..NEW
1504 # Same, but truly accessible:
1505 $ git log --oneline --reverse --topo-order --merges --parents OLD..NEW |
1506 while read c1 c2 c3 c4 c5 c6; do
1507 printf "%-24s: \$ git log --oneline --no-merges %s ^%s\n" \
1508 "${c6}" "${c1}" "${c2}";
1511 Entries for releases before v14.9.0 have been cut off and can be
1512 found in the git(1) repository:
1514 v14.8.0 - v14.8.16: $ git show v14.8.16:NEWS
1515 v13 - v14.8.5 : $ git show v14.8.5:NEWS
1516 9.0 - 12.5 : $ git show heirloom:ChangeLog
1518 Also accessible via HTTPS?, just replace X.Y.Z accordingly:
1520 \https?://git.sdaoden.eu/cgit/s-nail.git/tree/NEWS?h=vX.Y.Y
1522 For even older releases you need to look into the [timeline]
1523 branch, but no changelog has been administrated for them.