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