cmd_tab.h: change docstring of `sort'
[s-mailx.git] / NEWS
blobce178f4e7e7a5c6b4dd29a0427b3fb8f68450653
1 S - n a i l  N e w s
2 ====================
4 The complete changelog of commits in between two versions can be
5 inspected by using the git(1) `log' command as shown below, where `OLD'
6 and `NEW' are the two versions to be compared, e.g., v14.6 and v14.7:
8   # All commits:
9   $ git log --reverse --topo-order --abbrev-commit OLD..NEW
10   # Only topic branch headers (--no-merges for content commits only):
11   $ git log --oneline --reverse --topo-order --merges OLD..NEW
12   # Same, but truly accessible:
13   $ git log --oneline --reverse --topo-order --merges --parents OLD..NEW |
14     while read c1 c2 c3 c4 c5 c6; do
15       printf "%-24s: \$ git log --oneline --no-merges ${c1} ^${c2}\n" "${c6}";
16     done
18 v14.7.5, 2014-08-01
19 -------------------
21 Jan Chaloupka (jchaloup AT redhat DOT com) reported on nail-devel@ that
22 Heirloom mailx can be crashed by setting *smtp* in combination with with
23 *from* effectively set to a NULL string.  I first was optimistic, but it
24 turns out S-nail can, too.
26 v14.7.4, 2014-07-15
27 -------------------
29 Fixes maildir code which was broken in May (too).
30 Readds auto-detection of compressed boxes (i.e., if `$ Fi mybox' is
31 executed and `mybox' doesn't exist, but `mybox.bz2' does, then the name
32 is automatically expanded and `mybox.bz2' is used instead).
33 Sorry for the inconvience.
35 v14.7.3, 2014-07-14
36 -------------------
38 Thanks to Mantas Mikulėnas (grawity AT gmail DOT com).
40 This is a bugfix release which fixes a regression in the handling of
41 user credentials when *v15-compat* is not set, introduced in v14.7.1,
42 quoting Mantas:
44   In other words, $folder *requires* the @ to be percent-encoded, but
45   $password requires the *opposite*.
47 And that is not valid when *v15-compat* is not set.
49 v14.7.2, 2014-07-12
50 -------------------
52 Thank you: Gavin Troy, Bob Tennent (rdt AT cs DOT queensu DOT ca),
53 Tarqi Kazan.
55 NOTES:
56 ^^^^^^
58 v14.7.2 brings incompatible credential lookup changes when *v15-compat*
59 is set; the lookup order now is:
61 - *user-HOST*, *user*, [.netrc] ...
63 - *password-USER@HOST*, *password-HOST*, *password*, [.netrc] ..
65 Changelog in reverse order, oldest first.
67 ChangeLog (packager-affine)
68 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
70 - New configuration option WANT_AGENT to support *agent-shell-lookup*
71   (, -HOST, -USER@HOST) lookups of potentially encrypted password
72   storage (inspired by Gavin Troy) [b2d41d3,516a7f0]
74 - MAILSPOOL is now automatically set to /var/spool/mail if that
75   directory exists, only otherwise we use /var/mail [4a83018]
77 - WANT_GSSAPI is again enabled by default - Tarqi Kazan has correctly
78   pointed out that the system environment at compilation time is likely
79   to reflect the politics and/or preferred configuration of packagers,
80   and self-compilers have always the chance to configure themselves
81   (Tarqi Kazan) [398eb29]
83 ChangeLog
84 ^^^^^^^^^
86 - `un{,save,fwd}{ignore,retain}': let '*' mean 'all fields' [a1f1da9]
88 - Bugfix: `setenv' takes 1-1000 arguments, not exactly 2 [daf2ea8]
90 - New command: `varedit' edits the value of an existing variable in
91   $EDITOR [93070d2]
93 - New commands: `File' (and `Folder') explicitly open a mailbox in
94   readonly mode, thus finally offering the possibility to avoid flag
95   updates etc. whenever so desired [b1f5f2d]
97 - Bugfix: since May the header display would display tabulators in an
98   UTF-8 environment as replacement characters [870b314]
100 - *mime-counter-evidence* now is a valued option.  Set bit two (value
101   two) and the detected real MIME type is carried along with the MIME
102   part so that it is used instead of `application/octet-stream' to
103   lookup possibly registered *pipe-CONTENT/SUBCONTENT* handlers.
104   (Bob Tennent) [81473f8]
106   Also pipe handlers will now be passed several MIME informations via
107   environment variables, please see the manual for more.
108   (inspired by Bob Tennent)
110 - Resource file loading now prints a diagnostic when loading was stopped
111   due to a processing error.  This behaviour is also required by POSIX.
112   (Bob Tennent) [fd42684]
114 - Incompatible changes in credential handling, as above.
115   [25d7735,3cdb6a3]
117 - *netrc-lookup* is now a real chain and has -HOST and -USER@HOST
118   variants (though the latter only for password lookups) [59fc226]
120 - .netrc machine names are now lowercased before use [28c6fee]
122 - The manual has seen some reorderings, a TOC will be shown if you
123   '-dWANT_TOC=1' when using *roff(1) (as has been done for the online
124   manual)
126 - There is a new file `THANKS' [6b5cb3e]
128 ChangeLog (purely technical)
129 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131 - IMAP and IMAP cache now use string relaxation which *drastically*
132   reduces memory usage on large mailboxes [e5598ce]
134 - Fixed compilation on old OpenBSD installations without wordexp(3) as
135   well as with GSS-API and WANT_AMALGAMATION and now using #pragma's to
136   get rid of some warnings [topic/ccstuff]
138 v14.7.1, 2014-06-24
139 -------------------
141 Thanks to Georg Schlisio (g DOT schlisio AT dukun DOT de),
142 Wiesław Magusiak (wiemag AT poczta DOT onet DOT pl), Tarqi Kazan and
143 Karol Blazewicz.
145 Very special thanks: Gavin ".. .. Speeding kills. .." Troy from Ireland
146 and Ypnose "Gloria?? C'est une mouton!" from France.
148 Changelog in reverse order, oldest first.
150 ChangeLog (packager-affine)
151 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
153 - WANT_NOGETOPT is gone. [73f0605]
155 - WANT_NETRC: new option (on by default; see below). [topic/netrc]
157 ChangeLog
158 ^^^^^^^^^
160 - Manual slightly improved in respect to LC_ALL etc. settings.
161   The knowledge treshold value is much too high for a normal user;
162   i hope that at some later time we can offer much more (at least
163   optional) automation on the protocol level (e.g., timeout values,
164   protocol features supported by servers etc.), at which time we will be
165   able to make the manual more user friendly. (Georg Schlisio)
166   [56fab16,bd1e11f; ArchLinux Wiki]
168 - The `@' search command has new "header" keyword, which searches in all
169   headers.  Shortcuts: "<" = "header", ">" = "body", "=" = "text".
170   ("body" and "text" still perform full text searches _including_ MIME
171   part header content.)
172   [b0138a7]
174 - The -O command line option is legacy and will vanish in v15.0.
175   Arguments to the MTA can henceforth be passed after a `--' separator
176   on the command line, as in
177     echo bla|s-nail -vvd -s sub some@where -- MTA ARGS MADE EASIER
178   [topic/mtaarg]
180 - New *sendmail-arguments* option; content will be (converted to list
181   and) joined onto other MTA command line arguments (Wiesław Magusiak)
182   [topic/mtaarg]
184 - *colour-pagers* is gone -- instead we have *colour-pager*, which is
185   a boolean and off by default.  We again set LESS (and LV) environment
186   variable(s) to automatic turn on colour support in $PAGERs, but only
187   if the variable in question is not yet set.  (That is -- in order to
188   get coloured $PAGER you at least have to set *colour-pager* now.)
189   (Tarqi Kazan) [b794f5e]
191 - Terminals no longer need to be added to *colour-terms* if their name
192   (in $TERM) includes the string "color". (Gavin Troy) [ce2c7f6]
194 - Karol Blazewicz opened a discussion in the ArchLinux Forum (s-nail
195   14.7-1 doesn't work [1]) but i didn't realize his actual problem --
196   luckily Gavin Troy wrapped his head around the real problem, and that
197   finally opened my eyes against a whole can of worms in the new URL
198   and credential handling!
200   Then Ypnose also came along and reported an issue with IMAP handling
201   that was related to the compatibility credential handling of the new
202   URL and credential layer.
204   (Gavin Troy, Ypnose, Karol Blazewicz) [a5c40ba]
205   [1] <https://bbs.archlinux.org/viewtopic.php?id=182653>
207 - We now also have -HOST and -USER@HOST *smtp-use-starttls*. [bfb186a]
209 - Gabby history entries will now be saved and restored as such, in case
210   *history-gabby-persists* is set.  (For this to work properly
211   a possibly existing history file needs to be reset.) [b5502cc]
213 - We now have optional .netrc support (*v15-compat* set).
214   Set *netrc-lookup* and we'll look in $NETRC / ~/.netrc for user
215   credentials.  The `netrc' command will show or clear the entry cache.
216   E.g., this is my new account macro:
218    set v15-compat ssl-method=auto
219    set netrc-lookup
220    set smtp=smtps://smtp.yandex.ru:466 smtp-auth=plain smtp-hostname= \
221          hostname=yandex.com
222    ghost xp 'fi %:pop3s://pop.yandex.ru'
223    ghost xi 'fi %:imaps://imap.yandex.ru'
225   As an extension to the .netrc syntax we support a single
226   introductional subdomain wildcard, e.g., my relevant ~/.netrc entry:
228     machine *.yandex.ru login NAME password PASS
230   Following a suggestion of Gavin Troy we have multi account support,
231   i'm not quite sure wether this is portable across .netrc using
232   applications, e.g., i could have written the above like
234     machine *.yandex.ru login NAME
235     machine *.yandex.ru password PASS
236     machine *.yandex.ru login NAME2
238   (I hope i don't lie and this really works.)
239   (Suggested by Gavin Troy and Ypnose, testing and feedback Gavin Troy)
240   [topic/netrc]
242 - Add primitive support for RFC 3798 via the new
243   *disposition-notification-send* variable.  This is not yet
244   a truly conforming implementation (it simply injects the necessary
245   header) and it requires the *from* variable to be set.
246   More in the far future, sorry. (Wiesław Magusiak) [ca31d32]
248 ChangeLog (purely technical)
249 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
251 - Interrupt protection during (recursive) macro calls with `localopts'
252   on should now no longer be crashable at all.  Quote [a4e85c0]
253     It is of course all pretty intermediate until we have a signal
254     manager and we can actually poll signal states at those places where
255     we are capable of and desire to handle them.  But it should work
256     today and look nicer than it did.
257   [25caeb9,592499f,a4e85c0]
259 - `ghost' handling performs more strict name checking on ghost names in
260   order not to allow names which would later not be parsed as a whole.
261   [1523a6d]
263 - Dropped catopen(3) support (we never really had it)!  We will have
264   a new S-nail-specific gettext(3)-alike thing in v14.8.
265   [topic/i-wanna-have-a-dog]
267 v14.7, 2014-06-07
268 -----------------
270 Thanks go to Tarqi Kazan (tarqi AT cfs DOT or DOT gs) and Johannes
271 Löthberg (johannes AT kyriasis DOT com), as well as Martin Neitzel.
272 (And the winner is... Gavin Troy for his role in "Silence from Ireland".
273 Yay!)
275 Notes
276 ^^^^^
278 - Since S-nail now performs more-or-less proper percent-encoding as per
279   RFC 3986 users of *imap-cache* have to (either throw away and recreate
280   or) adjust their local cache, e.g. as follows (adjust CACHEDIR and
281   echo(1) to mv(1) as necessary; won't work with paths with whitespace):
283   $ CACHEDIR=${HOME}/traffic/.mail-cache; \
284   find ${CACHEDIR}/ -depth -type d |
285   while read d; do
286     b=`basename ${d}`
287     r=`echo ${b} | sed -e s/:/%3A/g -e s/@/%40/g`
288     if [ ${b} != ${r} ]; then
289       d=`dirname ${d}`
290       echo ${d}/${b} ${d}/${r}
291     fi
292   done
294 ChangeLog
295 ^^^^^^^^^
297 - New variable *history-gabby* can be set to add much, much entries into
298   the history than is done normally.
299   For the NCL only, setting *history-gabby-persist* will cause those
300   entries to be saved into *NAIL_HISTFILE*, too, which they are not by
301   default with it (the other command line editors should always save).
302   [6026507]
304 - The `online' alias for `connect' has been obsoleted. [d5cfde4]
306 - New CONFIG=MAXIMAL make option. [c0d4087]
308 - Support compilation on new OpenBSD with their reduced OpenSSL clone.
309   This topic also includes the real solution for getting rid of
310   a strcat(3) warning that i reintroduced with s-nail-14_5_2-smime.patch.
311   [topic/obsd56]
313 - Our -r command line option is now mapped to a `-f' MTA option -- the
314   sendmail(1)-compatible `-r' is long obsoleted! (Johannes Löthberg)
315   [d0ead39]
317 - New `elif' command so that we now have if..elif..else..endif.
318   If the optional regular expression support is available the new
319   conditions `=~' and `!~' can be used to perform (case-insensitive)
320   regex matching with `if' and `elif'. [topic/condsplus]
322 - New `~R' tilde escape (like `~r', but indent lines). [fae1f29]
324 - Improved multibyte-safety (e.g. for *prompt*) and a bit of
325   compatibility ("support" would be a wording much too strong) for
326   bidirectional text via the new *headline-bidi* variable.
327   [topic/unibidi, topic/mbbidi]
329 - Diversified behaviour of -v command line option as well as *verbose*
330   to support multiple levels of verbosity; the latter is now ternary
331   when set and boolean when unset.
332   This was the ground on which SSL certificate validition verbosity was
333   implemented (*verbose* level 1: certificates, level 2: network
334   communication et cetera), though much is left to do.
335   This has been suggested long ago by (Martin Neitzel). [topic/smverb]
337 - ^C in compose mode with *ignore* set acts now POSIX compatible
338   [0275d09]
340 - If *encoding* is set to base64 then we don't ignore that user
341   wish and use quoted-printable (when 7bit doesn't suffice) [2ca201f]
343 - New `urldec' and `urlenc' commands. [63e869e, fbd95e8, 0af5b1b]
345 - New `setenv' and `unsetenv' commands. [5e2ed79]
347 - Support for GSS-API authentification has been added (request and
348   testing by Tarqi Kazan).
350   Note that the following implicit relation is gone:
351     *smtp-auth*
352       If set to `login', or if unset and smtp-auth-user is set, `AUTH
353       LOGIN' is used
355   This topic branch also added support for the SUBMISSION protocol of
356   RFC 6409, so re-reading the *smtp* manual may bring benefits.
357   [topic/smtp]
359 - A new, backward-incompatible URL syntax and credential lookup scheme
360   has been introduced that is accessible when the new *v15-compat*
361   variable is set.  If used, credential lookup occurs before a network
362   connection is made.
364   The new manual section "URL syntax" describes the new credential
365   variable chains, and documentation of *from* should be read again, as
366   i now also refers to the new *smtp-hostname* variable.
368   Note that the generated `Message-Id' has also changed.
370   (Messy old way pointed out by Tarqi Kazan)
371   [topic/url, topic/cred]
373 - `resend' should be truly fixed and (fwiw) can also resend to pipe and
374   file addressees. [topic/resend]
376 - Support for empty lines in macro and account definition blocks (as
377   required by POSIX for startup files in general) [43cdf92]
379 - The nail command line editor gained the possibility to use PgUp /
380   PgDown / Home / End instead of z[-+0$] commands on xterm-compatible
381   terminals; and ^O equals a `dp' there, too. [8c57be2, 7c30e61, 95e672f]
383 v14.6.4, 2014-04-07
384 -------------------
386 Many thanks to Gaetan Bisson.
388 ChangeLog
389 ^^^^^^^^^
391 - Avoid segmentation faults with -L option if s-nail is opened on
392   non-existent mailboxes, e.g. '$ MAIL= s-nail -Lx'.  (Gaetan Bisson)
393   [e6c86da]
395 v14.6.3, 2014-04-05
396 -------------------
398 Thanks and greetings to Gavin Troy, Gaetan Bisson and Tarqi Kazan (tarqi
399 AT cfs DOT dyndns DOT biz).
401 ChangeLog (packager-affine)
402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
404 - WANT_AUTOCC knows that clang(1) version 1 can dig -Wstrict-overflow=5.
405   [2f77640]
407 - '$ make test' should work even if you are not steffen.
408   (Gaetan Bisson, Gaetan Bisson, Gaetan Bisson, Gaetan Bisson,
409   Gavin Troy, Gavin Troy) [8b796ba]
411 ChangeLog
412 ^^^^^^^^^
414 - *autoinc* is gone -- this is *newmail*. [07a8462]
416 - Working with large(r) IMAP boxes should work again without causing
417   segmentation violations. (Gavin Troy) [761dd87, b0ce180]
419 - With our builtin getopt a.k.a. WANT_NOGETOPT=1 usage of the -L option
420   caused segmentation violations. (Tarqi Kazan, Gaetan Bisson) [f2c2646]
422 - The decision wether we need $PAGER or not now also incorporates the
423   informational lines we inject for messages. [316b4cd]
425 - Drop `defines', add `unaccount', rename `undefine'..
426   The `defines' command has been united with `define' -- just like
427   `account' will list all defined accounts when used without arguments
428   `define' will now do so for macros.  And `undefine' is the new name of
429   `undef'.  The new command `unaccount' can be used to delete all given
430   accounts, in equal spirit to `undefine' and macros.
431   All of this is still vulnerable against recursivity, e.g., deleting
432   an executing macro still works, but don't that. [b0b3275]
434 - Rename `var-inspect' to `varshow'; silly oversight that `var-inspect'
435   will try to lookup a variable "-inspect".  Ouch. [afffd30]
437 - Without HAVE_ICONV the character set iterator sofar used
438   *charset-8bit* as the last resort, whereas it should have used
439   *ttycharset*.  Fixed.
440   P.S.: All this still preliminary, we await the MIME and send layer
441   rewrite to calm down the stuff for real. [edc3226, df9aefd]
443 - During `~@' editing it is possible to leave the possibly endless
444   character set selection loop by interrupting via ^C.
445   In the meanwhile this effectively drops the currently edited
446   attachment and leaves the entire attachment selection session; it
447   doesn't make sense to make it any better until we have our signal
448   manager and stop jumping around.
450   This changeset should also fix dangling Content-Xy MIME information of
451   attachments which were in the same slot before, e.g., if #1 was
452   a message attachment and that was changed on-the-fly to be a real file
453   attachment then the Content-Description would still have stated that
454   it is a message attachment.
455   [07a8462]
457 ChangeLog (purely technical)
458 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
460 - Since it has been decided to remain compatible to ISO C89 we cannot
461   use the ISO C99 `z' format string modifier (printf(3)).
462   Since quite some time we make efforts to provide our own `ZFMT' macro
463   (in `nail.h') which provides somethint compatible, but on 32-bit
464   platforms compilers often complain nonetheless.
465   Therefore we now also have a compile-time assertion that proves that
466   our `ZFMT' macro is really correct. [397e4d1]
468 v14.6.2, 2014-03-01
469 -------------------
471 Many thanks to the perpetual Gavin Troy.
473 - Faulty notational change of system call return values from `<0' to
474   `==-1' caused endless waitpid(2) loop. [d6f316a; test(!): 79fd761]
475   (Gavin Troy)
477 - (GLibC) STD I/O overoptimizes rewind(3) so that underlaying file
478   descriptor offset is not reset to 0.  Generalize the already
479   used `really_rewind()' hack and use it not only in
480   `savedeadletter()' but also in `page_or_print()'.  It is likely
481   that this not also fixes `history' listing but also some other
482   things which go through the pager, dependend on the setting of
483   *crt* etc., and on at least GNU/Linux systems. [463660f]
485   Note: standard I/O does NOT offer a possibility to do this in
486   a non-hackish way.  It is thus likely that S-nail will gain
487   a completely new I/O layer in the future.  That'll also be faster.
489   P.S., 2014-03-04:
490   This note is false: POSIX Issue 7 overloaded the meaning of
491   fflush(3): when used on readable streams the file offset of the
492   underlaying file descriptor is adjusted to that of the stream.
493   (nail.h: adjust really_rewind(): POSIX Issue 7 defined a way..)
494   uses this official approach instead if _POSIX_VERSION>=200809L.
496 - Old shells will now correctly execute an error-condition
497   execution path in `mk-conf.sh'. [afef55f]
499 v14.6.1, 2014-02-22
500 -------------------
502 Thanks to Andy Switala (andy DOT switala AT gmail DOT com).
503 And thanks to all package maintainers for their stamina.
505 At the first workday after the release i've run into a bug that was
506 caused by an oversight, a double-Fclose() that would be harmless if we
507 wouldn't forcefully panic() when we encounter it!
509 So i've spent another week on a review, and despite fixing many
510 additional notational oversights i haven't found more oversights of
511 newly introduced problems.  On the other hand i've found and fixed some
512 old problems during the review, and tweaked some other things:
514 - The INSTALL file now has a `Current codebase state' section.
516 - Commands invoked via `!' should now be interruptable.
517   I'm afraid the exit status of such a command will not be reflected by
518   the return value of the `!' command yet, but hey, at least `!sleep 10'
519   can now be interrupted -- try this with another Berkeley Mail!
520   [381ff46]
522 - All credential prompts should now be interruptable.
523   (Inspired from Andy Switala) [c3bb2a2]
525 - 'make test' will now test a silly S/MIME case when WANT_DEBUG (or
526   'make devel') was used. [8cff17f]
528 - *batch-exit-on-error* should now look at the exit status of *every*
529   command when the command loop ticks. [c7e7d53]
531 - The new `[?name-list]?search-pattern' search expression has been
532   changed to `[@name-list]@search-pattern' -- like this it doesn't clash
533   with the `?' help command and can thus be used on a line by itself,
534   causing the default command (`next') to be invoked on its' result,
535   shall there be one.  Ok, yes, that was surely also an oversight.
536   [8368f70]
538 - *attrlist* must now be exactly 13 characters, just as it should
539   be.  An error message is printed if not.  It was always komisch,
540   but i'd buggified it somewhen in the past.  Now fixed.
541   [part of 0d4e934]
543 - The NCL WANT_TABEXPAND feature now also works if *newfolders* is
544   set to `maildir'.  Yet, if a folder was assumed to be of maildir
545   type, shell globbing would not occur. [part of f5c184c]
547 - The `X-Decoding-Data' S/MIME header field was set to the epoch
548   origin instead of NOW in v14.6.
550   Also the `certsave' command now supports file globbing (i.e.,
551   '~/.certs/' should end up in your $HOME now).
552   [both part of 7e0aec7]
554 v14.6, 2014-02-15
555 -----------------
557 + With this release the S-nail codebase has been converted to my usual
558   style of function-code-flow and notation.
560   ?0[]$ git diff --shortstat v14.5.2..HEAD
561    55 files changed, 28065 insertions(+), 25356 deletions(-)
562   ?0[]$ git diff --ignore-all-space --shortstat v14.5.2..HEAD
563    55 files changed, 14664 insertions(+), 11955 deletions(-)
565   Maildir and S/MIME support have been restored, and a MIME bug that
566   could have led to missing data in header display+ has been fixed.
567   Ah, and users of compressed boxes should now feel luckier, too --
568   at least once they've realized that the compress extension is no
569   longer appended automatically, but must be given explicitly.
571   Thus: i hope that all those i-am-new-to-the-codebase bugs i've
572   introduced over a year ago have been found and fixed, and that
573   v14.6 is the true "sweet sixteen" (months of maintainership).
575 ChangeLog (packager-affine)
576 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
578 - If WANT_AMALGAMATION is set, `-pipe' will be added to our CFLAGS
579   (which are only honoured with WANT_AUTOCC, of course).  [1330411]
581 - New configuration option: WANT_IMAP_SEARCH, enabled by default.
583   The regular expression support for IMAP-style search expressions has
584   been removed again: it changed the IMAP search semantic in that it
585   couldn't be executed on the server, but only local, and the syntax
586   sucked, too.  (And we have a new `?' search expression.)  [402b7c6]
588 - CONFIG=MEDIUM and CONFIG=NETSEND now both WANT_REGEX.  [dee954e]
590 - The `make test' target should *really* work gracefully, now that usage
591   of the `-#' command line option also sets the folder to be opened to
592   `/dev/null'.  (Still no `void' box in sight.)  [0119d514]
594 - All published patches may also be found in a new [patches] branch.
596 ChangeLog
597 ^^^^^^^^^
599 - Several fixes that saw published patches (with equivalent
600   functionality), and are thus described in NEWS, are included:
602   . s-nail-14.5.2-sort-alt.patch
603     Fixes a hasty commit that introduced string relaxation in a faulty
604     way.  [5e75529]
606   . s-nail-14_5_2-mimeheader.patch
607     Fixes data loss if multiple MIME encoded-words follow each other in
608     header bodies.  [c81afce]
610   . s-nail-14_5_2-maildir.patch
611     Effectively restores proper maildir support.  [1c2563b, 13f325f]
613   . s-nail-14_5_2-smime.patch
614     Fixes an off-by-one error and, in effect, restores S/MIME sign and
615     encryption etc. support.  [e759f75]
617 - The `screen' terminal type is by default recognized as being
618   colour-capable.  [e759f75]
620 - With the NCL command line editor and WANT_TABEXPAND hitting <TAB>
621   should now act as if an "implicit asterisk" had been given in case
622   there was no expansion of the original user input; e.g., '? ls <TAB>'
623   may exceed your line limit now ;).  [0910a8f]
625 - The S/MIME cipher list was outdated, RFC 5751 requires AES-128 as
626   the default, the RC2 ones are long obsoleted (etc.).  Also we now
627   should handle that OpenSSL may not support individual algorithms.
629   Note: we use the option value `des3' for `DES EDE3' from now on!
630   (Maybe see *smime-cipher-user@host* manual entry.)
632   *ssl-method* may now also be assigned the new (default) method `auto'
633   explicitly.
634   [2472670]
636 - Messages will now be stored in a set *record* even if only file or
637   pipe addressees were given.  [a11935b]
639 - Support for xz(1) compressed mailboxes has been added.
640   (The `Can't canonicalize' warning for compressed boxes had the same
641   cause that made maildir usage impossible, but i don't feel _too_ bad
642   because looking into the code a bit revealed that the *newmail*
643   mechanism never worked for such boxes anyway.  And will for a while.)
644   [7fd9979]
646 - S-nail now supports nested if..else..endif conditionals.  [3c22c04]
648 - The NCL command line editor now locks its' history file when it reads
649   and writes it, so as to protect against concurrent usage.  [c3a39ce]
651 - You can now say 'fi%', 'fi&', 'p&10' and `ghost ps '!ps axu'' followed
652   by 'ps|grep nail'.  [c3266c6]
654 - Invocation cleanup: usage of -f and -u is mutual, -H and -u is ok, -u
655   in send mode not.  [fa0a0aa]
657 - New message specification: `[?name-list]?search-string' will search
658   in locally available messages.  If the optional `?name-list' part is
659   given, that specifies the (comma-separated list of) header fields to
660   search in.  The special names `body' and `text' can be used to search
661   in message bodies alone and bodies including the headers fields,
662   respectively.  Note that "message bodies" unfortunately still means
663   "including headers of attachments and attachments themselves", and
664   until some later time.  [61bb460]
666 - The new command line option `-L spec-list' prints a header summary of
667   only those messages that comply to the specification list `spec-list'.
668   If -L and -H are used in combination, no summary is printed at all,
669   but the exit status reports wether `spec-list' would have matched some
670   messages or not.  [934e12c]
672 ChangeLog (purely technical)
673 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
675 - Most of the work was changing the code-flow of the entire codebase to
676   my usual style of programming, with a single function entry and
677   a single function exit, including the addition of N(ot) Y(et) D(ead)
678   points of interest, which finally enabled me to get rid of (sic!)
679   using a debugger for S-nail development.  Just compile via 'make
680   devel', and in case of a crash you should get a nice backtrace
681   listing.  (You use IMAP, do you?)
683   However, because practically every line of code has been touched, this
684   caused some other changes along the way, e.g., the handling of
685   temporary files was changed completely (the formerly used Ftemp()
686   function has been replaced with a new Ftmp(), which handles unlinking
687   itself as necessary etc.), it was detected that the S/MIME support was
688   no longer compliant to any RFC, some resource leaks have been
689   eliminated...  It is likely that a change so large introduced some
690   other flees and flaws, however.  But it looks good so far.
691   Thank you.
693 v14.5.3, 2014-02-15
694 -------------------
696 + No official release, only exists as git(1) tag.
698 v14.5.2: fix 4: 2014-02-15 (2014-02-14)
699 ---------------------------------------
701 - s-nail-14_5_2-smime.patch
702   Fix a very stupid off-by-one error that i've introduced
703   in [7bdf330] (OpenBSD 5.3: sigh, address strcpy(),strcat()
704   etc., 2013-06-01).
705   Until we've changed the used data from string to something
706   line-wise, use strcat(3) again.
708 v14.5.2: fix 3: 2014-02-10
709 --------------------------
711 - s-nail-14_5_2-maildir.patch
712   maildir folders would have caused problems in environments which
713   provide the realpath(3) function: beside a "cannot canonicalize PATH"
714   warning the finally used path would be wrong (`test3' would end up as
715   `test3/test3'), so that any further access would try to use the wrong
716   path.  Please read the description of this patch and/or the commit
717   logs of the commits [1c2563b] and [13f325f].
719 v14.5.2: fix 2: 2014-02-05
720 --------------------------
722 - s-nail-14_5_2-mimeheader.patch
723   A header like
725     Subject: ehm, .getElementById("blink") needs <span
726      =?US-ASCII?Q?id=3D"blink">,?= not =?US-ASCII?Q?class=3D"id"?=
728   would yet be displayed without the " not " in between the two encoded
729   words because of faulty "encoded-word-continuation" detection (note
730   the quotation marks).  The error path could also have been seen in
731   mail forwarding and in faulty searching etc.
732   This patch is in a row of fixes for my hasty [0f9ad93] from 2013-03-12
733   that already caused the v14.2 minor release (because of [b608c6b] from
734   2013-03-14).  Those with mercy may read the commit message of [c81afce].
736 v14.5.2: fix 1: 2014-01-30
737 --------------------------
739 - s-nail-14_5_2-sort.patch
740   Reverses (sort(),thread(): use srelax()!, 2014-01-18, [a9b67e9]),
741   which was a hasty commit of an untested diff that i've added few
742   minutes beforehand:
744     As a rather careless last-minute change i've added string relaxation
745     to threaded and sorted display, but it's really one more step towards
746     lowering memory pressure -- i couldn't resist [a9b67e9] after seeing
748   An alternative, forward-heading patch that keeps string relaxation has
749   been pushed to [master] as [5e75529] and is also available as
750   s-nail-14_5_2-sort-alt.patch.
752 v14.5.2, 2014-01-18
753 -------------------
755 Thanks to Ypnose, Sunil Nimmagadda and Gavin Troy.
756 Gavin Troy *really* deserves special thanks for facing [next]!
757 And i want to dedicate the new coloured message display functionality
758 to John Dodson and Ypnose.  Thank you.
759 (And best wishes to beautiful Australia!)
761 ChangeLog (packager-affine)
762 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
764 - All utilities can now be overwritten during configuration so that
765   their values are fixated in the generated makefile (`mk.mk').
766   I.e., talking about MAKE=, STRIP=, awk=, cat=, chmod=, cp=, cmp=,
767   grep=, mkdir=, mv=, tee=.
768   rm= and sed= have to be overwritten from the command line, they're
769   needed before `conf.rc' is read.
770   [5c03347, 072ec65, 39a00ab, 23a1245, ?]
771   (Ypnose)
773 - The release tarball is now also available in a xz(1) version.
775 - New configuration option: WANT_COLOUR, by default enabled.
777 - 'make test' should now really work, even if the running user has
778   a mailbox with content. [f223a91]
780 - WANT_AUTOCC is now by default enabled, so as for normal users which
781   don't have the need to embed into a defined packaging environment.
782   [d7e4e31]
784 - Installation no longer strip(1)s away debug symbols if WANT_DEBUG was
785   enabled. [6d075c6]
786   (Gavin Troy)
788 ChangeLog
789 ^^^^^^^^^
791 - Fixes to some bugs that are present since the first cvs(1) commit of
792   Heirloom mailx(1); includes that *ssl-key-user@host* should now work.
793   [4405a2cc, 9770c26f, 692976b9]
795 - Some off-by-XY fixes, thanks to the debug memory canaries.
796   [19b2b0d, 202506e, 43df6e4]
798 - Fixes for (other) stupidisms (of mine): [1c2161f]
800   This includes true implementation of in-memory history limit for the
801   NCL, which was the final and real solution to a segmentation fault
802   that Gavin Troy had to deal with on [next]. [1089f2b]
803   (Gavin Troy)
805 - For completeness: new command `var-inspect' shows information about
806   all given options.  Mostly ment for implementing future tests.
807   [topic/okeys]
809 - The `pipe' command no longer embeds message information into the
810   data passed through to the command (when *piperaw* is set).
811   [ef5ecc6 (part of topic/colour)]
813 - Simple coloured message (header) display is now possible.  Please
814   read the new manual section "Coloured message display", use
815   *colour-disable* to turn it off.  (It is enabled by default if it
816   knows the terminal is capable and, if used, the pager can, too.  Note
817   we now set LESS=FRXi when starting PAGER and no LESS= is in the
818   environment.)
820   Dedicated to John Dodson and Ypnose.
821   [topic/colour, c6e84c7]
823 - The `if', `else', `endif' syntax has been extended.
824   You can now "if 0" (never), "if 1" (always), "if $OPTION" (boolean
825   check for OPTION) and "if $OPTION == 'VALUE'" as well as "if $OPTION
826   != 'VALUE'".  Unfortunately it is still not possible to use
827   conditionals inside conditionals. [0fb2ae7]
829 - -# now also sets MBOX=/dev/null. [4be2f1e]
831 - The NCL command line editor now supports cursor keys when the terminal
832   produces xterm(1)-compatible keycodes ('ESC' + '[' + [DACB] for left,
833   up, right and down, respectively).  What a thrill, yay!!! [0cbf672]
835 - New (optional) command: `history': show or clear command line history,
836   or select a specific command line from in there.
837   History works a bit different now, and should no longer include
838   command lines which include specific message numbers; more to come.
839   [59c6195, topic/hist2]
841   I plan to join all the history management and use only the one that is
842   part of NCL now, hooking it into editline(3) and readline(3).  That
843   would shrink tty.c a bit and also introduce duplicate elimination for
844   readline(3).
846 - The new ~u and ~U tilde escapes work like ~f and ~m, respectively, but
847   don't include any header lines.  Inspired by a patch from
848   Sunil Nimmagadda on openbsd-tech@.  [c37b8b3]
850 - The `|' command should work again -- it has stopped working on
851   2013-09-09 when i've accidentally changed the command name from `|' to
852   ` | '. [5a8378d]
853   (Gavin Troy)
855 - As a rather careless last-minute change i've added string relaxation
856   to threaded and sorted display, but it's really one more step towards
857   lowering memory pressure -- i couldn't resist [a9b67e9] after seeing
858     ?0[ /Users/steffen/src/nail.git/t.mbox]? sst
859       Buffer allocs ever/max simultan. : 14/14
860       Overall alloc count/bytes        : 17165/881088
861       Cycle maximums: alloc count/bytes: 16906/876984+0
862     ?0[ /Users/steffen/src/nail.git/t.mbox]? sst
863       Buffer allocs ever/max simultan. : 0/0
864       Overall alloc count/bytes        : 16515/841816
865       Cycle maximums: alloc count/bytes: 16256/837712+829560
867 ChangeLog (purely technical)
868 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
870 - We now have debug canaries for all memory sources now that [8419d44]
871   added them to the "string dope".
873 - The most work has been done on our value system, which manages the
874   binary and value options, like *folder* etc.
875   It is now based on enumerations, i.e., constant integers, not on
876   strings.  This of course only relates to non-dynamic options.
877   Anyway, this saves us key hashing and allows more compact data
878   representation in general (see the new header `okeys.h' for more).
879   [topic/okeys]
881 v14.5.1, 2013-12-27
882 -------------------
884 ChangeLog (packager-affine)
885 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
887 - The build system *only* uses the automatically detected $CFLAGS and
888   $LDFLAGS if WANT_AUTOCC=1.  I.e., even unset or empty $CFLAGS and
889   $LDFLAGS are not touched until then.
890   (We do however still set $CC if that is unset or empty or set to the
891   plain string "cc".) [856625f6]
893 ChangeLog
894 ^^^^^^^^^
896 - Fixed segmentation faults / bus errors when setting *nofolder*
897   / *line-editor-cursor-right* to the null string (only with WANT_NCL),
898   respectively. [d1f1a19b, 21e5c285, 9f6ff25d]
900 - *prompt* handling is now really POSIX compliant (thus no prompting
901   occurs not only for 'set noprompt', but also for setting *prompt* to
902   the null string).
904   This was indeed a rather large changeset that also introduced the new
905   *prompt* escape character \&, which expands to `?' by default and to
906   `&' if *bsdcompat* is set.
908   Like that we now can simply assign "\& " to *prompt* at program
909   startup, which (a) allows to do 'set noprompt' without error (once)
910   and (b) allows for POSIX compliance in respect to prompt handling
911   without any complicated conditional code, but (c) gives us the
912   opportunity to continue to support BSD prompts.
913   [0dfe53db]
915 - For completeness: new command: `features'.  (Rather useful for being
916   able to implement more tests in the future, and act according to what
917   is really compiled into the tested binary.
919 - The `-#' command line option now also sets *quiet* by itself.
920   [7b5a5c87]
922 - nail.1: a newly introduced empty line in the manual produced error
923   messages on some systems.  Fixed.
925 - The return value of the `mimetypes' command has been reversed and
926   should now be fixed. [acf56ac52]
928 - In threaded display the Subject: followup suppression no longer
929   takes into account invisible messages.
930   Also, rudely hack in a messages-already-written-in-this-round counter,
931   so that the followup suppression knows when "the top of the screen" is
932   reached, which (seems to) help(s) against missing subjects up there as
933   well as after a `newmail'. [topic/subject]
935 - Added a WANT_REGEX=1 toggle in `conf.rc'.
936   When we find regular expressions then a new regex-enabled IMAP-style
937   search is available (see the manual for more) [1ec8fe68]
939     ? f (/or subject ^\[S-nail (subject ^\[nail-devel))
940     ? f (/subject ^\[S-nail) (/subject ^\[nail-devel)
941     ? f (/subject "^\\[(S-nail|nail-devel)")
943   I'm looking forward for being able to add another, simplified, syntax.
945 ChangeLog (purely technical)
946 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
948 - The cc-test.sh has seen some tweaks, for easier future extension, and
949   for adding a test for [d1f1a19]. [several, mentioned: 21e5c285]
951 - On systems without a real wordexp(3) implementations deadlocks could
952   occur because we sometimes hold_all_sigs() to avoid longjmp(3)s away
953   (and will do so for quite some time, still), and that resulted in the
954   SIGCHLD that reported the exit of the started subshell to be blocked,
955   too (e.g., after '? *.h<Tab>': endless hang).  Fixed.
957 v14.5, 2013-12-19
958 -----------------
960 Many thanks: Gaetan Bisson, William Yodlowsky, Gavin Troy,
961 Thomas (wasd AT gmx DOT net), Ypnose.
962 And Gavin Troy definetely deserves a very special credit.
963 But thank you all, and very much indeed!
965 ChangeLog (packager-affine)
966 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
968 - The `test' make target has been fixed. [f0991e14]
969   (Gaetan Bisson)
971 - It is possible to gain a different kind of make(1) verbosity by
972   using a VERBOSE=1 command line argument (this knob is not taken into
973   account when deciding wether a rebuild is needed). [498e4ad0]
974   (William Yodlowsky)
976 - On Crux 3 Linux and OpenBSD the readline(3) and editline(3),
977   respectively, libraries will now be found when desired. [a7d1aa78]
978   (William Yodlowsky)
980 - WANT_LINE_EDITOR has been renamed to WANT_NCL, *plus*.
981   So now there are WANT_READLINE, WANT_EDITLINE and WANT_NLC, each of
982   them can be set individually, and they are tested in the shown order.
983   Also, WANT_TABEXPAND and WANT_HISTORY have been introduced and can be
984   used to fine-tune functionality. [ae4e01e1, b2635feb, 9742bf40]
986   (While here, i've fixed WANT_TABEXPAND code so that it is more
987   sensitive to line excess; on Linux etc., where MAX_INPUT is 255,
988   strange behaviour could be seen because we didn't take into account
989   the length of the prompt at all.  The NCL is assumed to have only
990   one remaining, but unfixable problem: backspace often is incapable
991   to cross visual line boundaries; use ^A/^E + ^L, then. [e832c04a]
993   Also, cursor (now ^B and ^F) and history movement (now ^P and ^N) of
994   the NCL have been changed. [d7d928da])
996 - WANT_QUOTE_FOLD is now enabled by default.  And WANT_ASSERTS has been
997   renamed to WANT_DEBUG. [1e10da1f]
999 - The build system has seen yet another overhaul in general.  CC, CFLAGS
1000   and LDFLAGS plus are now tracked and changes will force rebuilds.
1001   The new WANT_AUTOCC option can be used to let the build system figure
1002   out a compiler and choose known-to-work flags.  Use the new ADDCFLAGS=
1003   and ADDLDFLAGS= command line arguments to add your specific flags on
1004   top of those -- the final CFLAGS etc. are what is change-tracked.
1006   This rather massive internal rework revealed that old Bourne shells
1007   were yet not supported by the new build system, and so did testing
1008   that UnixWare installation was yet impossible due to tool
1009   incompatibility. [75c4b74e]
1011 - The new WANT_AMALGAMATION option will force compilation of all the
1012   sources in a single compilation unit.  This requires a rather large
1013   amount of memory, but may produce a more compact, maybe more optimized
1014   binary.  (Implementing this revealed quite some bugs which could
1015   therefore be fixed.) [topic/amalgam]
1017 - `nail.rc' has been pimped a bit (mostly comments, but
1018   *mime-counter-evidence* is now always set). [e3094ba7]
1020    That changeset was however buggy. [f3dcb46]
1021    (Gavin Troy)
1023 - We no longer use install(1) for `install'ation make rules. [80b02cd9]
1025 ChangeLog
1026 ^^^^^^^^^
1028 - Even '$ s-nail & fg $!' will now work with the NCL. [2a8b5c55]
1030 - Several off-by-one (off-by-two) fixes. [32ce9836, 71e6d013, f139dc36]
1031   (Gavin Troy, Thomas)
1033 - Setting *noprompt* now prevents prompting, as per POSIX. [ecefaf63]
1035 - *prompt*: new \$ (exit status of last command) and \@ (name of
1036   currently active mailbox) escape sequences. [6f652046]
1038 - One may now omit the space in '? unc' ('?unc') [05fcb383]
1040 - New commands: `ghost' and `unghost' define command aliases (since
1041   `alias' is taken for a different purpose) [topic/commands]
1043     ? ghost ps '!ps axu'
1044     ? ps |grep nail
1046 - There is now a pseudo account `null' (case-insensitive).
1047   Also a new `localopts' command exists; when used from within an
1048   `account' block, options changed will be reverted back to its former
1049   value when the account is left (e.g. by switching to `null'):
1051     define sdn_ {
1052        alternates sdaoden@users.sf.net sdaoden@users.sourceforge.net \
1053           sdaoden@googlemail.com sdaoden@gmail.com
1054        set Sign="\n--steffen\nForza Figa!" sign="\n--steffen"
1055        set smtp=smtp.gmail.com smtp-auth=plain smtp-use-starttls
1056        #..
1057     }
1058     account sdn_gm {
1059        localopts 1
1060        call sdn_
1061        set from="Steffen \"Daode\" Nurpmeso <sdaoden@gmail.com>"
1062     }
1063     account sdn_sf {
1064        localopts 1
1065        call sdn_
1066        set from="Steffen \"Daode\" Nurpmeso <sdaoden@users.sf.net>"
1067     }
1069   E.g., after
1071     ? acc sdn_gm
1072     ? acc null
1074   neither of *Sign*, *sign*, *smtp** nor *from* should be set.
1075   Please see the manual for more.
1076   TODO - neither command-ghosts nor alternates etc. are yet tracked
1077   TODO - we should have a boolify() so as to say 'localopts yes' etc.
1078   [topic/acmava]
1080 - New command: `cwd' (print current working directory).
1081   Also fixing the `chdir' return value. [eff4397c]
1083 - The *ssl-method* now allows explicit setting of 'tls.1.1' and
1084   'tls1.2' values. [c66b4196]
1086 - When sending to display, be aware that filenames in MIME parts may of
1087   course be MIME-encoded! [1454be03]
1089 - *hostname* is now honoured even if *smtp* is not set.  (We always
1090   supported *from*, so why not *hostname*?)
1092 - The `-u user' option now acts identically to setting the $USER
1093   environment variable and both now tend to mean something like
1094   "impersonate as user in some aspects".  Note that we have always used
1095   the latter in one or the other way, and `-u user' always ment more
1096   than just "open mailbox of user", so i think this change sharpens the
1097   edge in the right direction. [09632731]
1099 - Filename argument quoting has been tweaked for (some) function(s which
1100   take a filename argument last).  The following snippet as reported by
1101   Gavin Troy should work now: [2bb9b80e]
1103     ? mv +inbox.Junk\ Mail
1105 - The GNU implementation of wordexp(3) is also (i've added a workaround
1106   for the very same bug for Mac OS X in S-nail v14.3 [63273772]) buggy,
1107    which causes segmentation faults when expansions failed (`fi &VOID').
1108   [470527b7]
1109   (Gavin Troy)
1111 - The `fi' command no longer uses the (possibly truncated) display
1112   version of a filename, but the full path. [5cd85b07]
1114 ChangeLog (purely technical)
1115 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1117 - Large rework of internal structure: bundle inclusion of most of the
1118   external and the content of most of the internal #include files in the
1119   new nail.h.  If that would have been done very first bugs like the
1120   infamous MAXPATHLEN bug as reported by Paul Vojta (see v14.4.2) would
1121   never have occurred. [21f3155b]
1123 - Support for -fstrict-overflow cc(1) flags. [topic/strict-overflow]
1125 - Fixed the quotation filter which yet allocated memory even if not
1126   used. [c98cdaf5]
1128 - String relaxation reduces memory pressure rather drastically when
1129   working with many (especially MIME) mails at a time, e.g., when
1130   writing a modified mailbox.  Before all messages of a mailbox had to
1131   be worked without releasing any memory in between, now we give back
1132   memory (to our pool, not the system) after each and every message.
1133   [topic/srelax]
1135 - The other memory source now uses bound canaries, which also found some
1136   errors. [3d9fe741]
1138 - We now use the EL_PROMPT_ESC editline(3) mode for prompting, which
1139   should offer the possibility to use coloured prompts etc. with
1140   (even those) editline(3) (versions which do offer it -- older versions
1141   should just do fine by themselves).
1142   S-nail uses the special trigger control character \1. [ea30d818]
1143   (Ypnose)
1145   Note however that all tested editline(3) versions are buggy and
1146   either don't get it right (`\1COLOR-ON\1stuff\1COLOR-OFF\1') or are
1147   incapable of proper repainting (`\1COLOR-ONstuffCOLOR-OFF\1').
1149 - We now use the MD5 digest code from the OpenSSL library if that is
1150   usable. [893b16c0]
1152 v14.4.5, 2013-10-19
1153 -------------------
1155 Many thanks: Gaetan Bisson, Stephen Isard, Jérémie Courrèges-Anglas,
1156 William Yodlowsky, and Adam Sjøgren from GMANE.org!
1158 ChangeLog (packager-affine)
1159 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1161 - The packager-install: target has been fixed. [a8c1b0b]
1162   (Gaetan Bisson and William Yodlowsky)
1164 - As suggested by Gaetan Bisson the several build system tasks are now
1165   individually addressable, i.e., 'make [OPTIONS] config', 'make build',
1166   'make test', 'make packager-install'); nothing changes unless you want
1167   to, in which case: please see INSTALL. [4d3b799]
1169   The new target 'test' will call cc-test.sh with its new --check-only
1170   option which will only perform the (too few) function tests on the
1171   ready binary.
1172   And cc-test.sh will no longer create output files, but simply echoes
1173   to STDOUT and STDERR. [629e1ee, 786f219]
1174   (Gaetan Bisson)
1176 - The default configuration file now sets *bsdannounce* and *bsdflags*,
1177   all in one line, as suggested by William Yodlowsky.
1178   (If *header* is disabled, *bsdannounce* is ignored, but *header* must
1179   be enabled by default according to POSIX, and *bsdannounce* is just
1180   the same as *header*, but for the folder-switched event.  Thus setting
1181   *bsdannounce* is the more sane default, imho.) [6161f10]
1182   (William Yodlowsky)
1184 - Announcement messages are now tagged '[ANNOUNCE]'. [26e1b35]
1185   (Tagging suggested by Stephen Isard and Jérémie Courrèges-Anglas)
1187 - The manual NAME now includes the version (but it's somewhat ugly).
1188   [8adcca4]
1190 ChangeLog
1191 ^^^^^^^^^
1193 - When switching folders when in compose mode, message attachments
1194   become invalid.  For v14.4.5, at least warn when this happens.
1195   [47eb1ab]
1197 - When reading multipart/alternative messages which do not contain
1198   a text/plain part, the (most likely HTML) part is not displayed (even
1199   if S-nail is configured to display HTML).  The reason is a bug i've
1200   introduced with [0d43a999] (Change "Part X:" display message..,
1201   2012-12-20).  (Note that the committed fix i've posted to the list was
1202   not correct either and has been fixed itself.) [225c02b, ecfa149]
1204 v14.4.4, 2013-10-03
1205 -------------------
1207 Thanked, Gavin Troy, Gaetan Bisson.
1209 - Fix output buffer confusion that would have occurred when parts of
1210   a multipart mail had a pipe command set.  Longer story in [e75d16dd].
1211   (Gavin Troy)
1213 - The makefile now supports a `packager-install' target that bypasses
1214   the reevaluation of the configuration (after checking that there is
1215   one) and directly steps ahead to the install process.
1216   (Gaetan Bisson)
1218 - Notes in INSTALL that CFLAGS and LDFLAGS need to be overwritten from
1219   within (conf.rc or) the command line.
1220   (Gaetan Bisson)
1222 v14.4.3, 2013-10-02
1223 -------------------
1225 I convey special thanks to Karol Błażewicz and Gaetan Bisson.
1227 - The new build system didn't allow to overwrite CFLAGS= when used in
1228   conjunction with GNU make(1).  To make a long story short, removing
1229   a `.POSIX:' directive from the makefile fixed the problem.  Luckily.
1230   [e6b26526]
1232 - More INSTALL notes for UnixWare 7.1.4, which suffers from the same
1233   problem: here the fix is to use the -e option of make(1).
1235 - Karol Błażewicz reported a segmentation violation he got when using an
1236   Arch Linux S-nail test package, and Gaetan Bisson informed me about
1237   that.  The problem was that we didn't assign the resulting default
1238   address (which gets used when *from* is not set) to the result which
1239   gets used, effectively resulting in a NULL dereference. [cfd60479]
1241 v14.4.2, 2013-09-21
1242 -------------------
1244 Many thanks to Paul Vojta.
1246 - On GNU/Linux there is no MAXPATHLEN constant defined by default, as
1247   this is a non-standard legacy constant.  Mozilla ran into this some
1248   time ago, though a bit different [1].  It made it easier for S-nail.
1250     [1] <https://bugzilla.mozilla.org/show_bug.cgi?id=412610>
1252   We could include `sys/limits.h' to get at MAXPATHLEN, there it is
1253   defined to be PATH_MAX, but let's just include the standard `limits.h'
1254   and ensure MAXPATHLEN ends up >= PATH_MAX.  With this condition being
1255   true even FORTIFYd sources won't bail with reported buffer overflows
1256   because realpath(3) expects a buffer of PATH_MAX bytes. [bee5e57c]
1257   (Paul Vojta)
1259 - With the builtin LINE_EDITOR, ensure proper interaction with GNU
1260   rlogind(8), which is alone in its quest to set the ISTRIP termios(4)
1261   flag. [61e00f2d]
1263 - Bugfix a codepath that would have prevented compilation when
1264   HAVE_ICONV is not set.
1265   While there, allow to unselect message attachments when using the `~@'
1266   tilde command interactively, which i mysteriously had forgotten when
1267   allowing selection of 'em.  (oops?) [4f58ffea]
1269 - It's now easier for packagers to get at debug-enabled CFLAGS; simply
1270   use WANT_ASSERTS=1 (should not be enabled in shipouts, please).
1271   [d8663406]
1273 - Fixed a terrible bug that i've introduced in november 2012, that would
1274   have corrupted MBOX files when using the `resend' command.  (The
1275   so-called "From_ line" would have been quoted to ">From_ line" instead
1276   of simply being stripped.) [19d449e2]
1278 - Fixed a SIGSEGV for the builtin LINE_EDITOR, that would have occurred
1279   if a history traversal (^B or ^F) would have been continued by
1280   a reverse history completion (^R).
1281   While there, avoid some multiple-beeps-in-a-row that yet occurred due
1282   to code reuse, and document that ^G etc. reset the multibyte state
1283   machine. [003d9f6f]
1285   Also, the expand-on-tab code could have excessed line input maximums,
1286   e.g., after `? /usr/bin/*<Tab>'.  This was of course known, but
1287   i wanted to keep it because all tested (modern) terminals "mess up but
1288   won't break", and thus made it possible to use the data, even if it's
1289   visual representation was messed up.  The real solution will be much,
1290   *much* more complicated, i.e., show possible *completions*, page-wise,
1291   etc., i.e., just like is known by tab *completion*.  This will need
1292   far more time because it doesn't make sense to embed such complicated
1293   code into the current bed.
1294   Now i've chosen to simply don't display excess, but replace the
1295   content with a message that says that there was excess.  It simply
1296   looks better. [0320c8ba]
1298 - I've changed the use of `[?]' as a replacement sequence for invalid
1299   / non-displayable characters to `?' (again).  There are still code
1300   paths (from the original codebase) which use the real Unicode
1301   replacement character instead, so our display is still not unique.
1302   On the long term the codepath can anticipate in all levels wether
1303   use of Unicode is possible, so that, then, we will be unique again,
1304   using either only `?' or the Unicode replacement character. [faf6380]
1306 - I've anticipated in v15.0 and implemented *quote-fold* as a stream
1307   filter.  It is now multibyte safe and takes into account the visual
1308   width of characters, i.e., ideographs etc.  It is working almost as
1309   good as an algorithm can work that looks at data linewise, but is yet
1310   experimental and incomplete in that it will break lines even if only
1311   whitespace or a backslash escape follows.  It is code that is only
1312   a few hours old, which is why it is not enabled by default. [
1314 v14.4.1, 2013-09-14
1315 -------------------
1317 How terrible.
1319 - Fix some harmless stylos and typos in the manual and `conf.rc'.
1320   [1a6b880, 417b066]
1322 - Ensure *complete* proper cleanup on signal-caused configuration run
1323   aborts. [7a08bda]
1325 - Bugfix: reenable empty configuration variable overrides, as in
1327     $ make install SID= NAIL=mailx ...
1328   [171861d]
1330 - Bugfix: rename the `conf.rc' variables SHELL, LISTER and PAGER because
1331   they clash with the POSIX standard variables of the same names, which
1332   hurts now that the configuration is run through the shell itself.
1333   The configuration names are now XSHELL, XLISTER and XPAGER (ouch).
1334   [ef93c4e]
1336 - nail.rc: comment out some non-portable S-nail(1) specifics, for those
1337   who install this file as mailx.rc or so, somewhere. [3f14b01]
1339 - From now on S-nail will use simple version tags, as, e.g., `14.4.1',
1340   i.e., no more `s-nail-14.4.1'. [a75437d, 183d59c] (Jürgen Daubert)
1342   Also move UAGENT out of `version.h' [f7be5be]
1344 Uh! v14.4 must have originated in a bad dream; good it's vanished.
1346 v14.4, 2013-09-13
1347 -----------------
1349 Thanks to the entire vivid and virile S-nail(1) user community is
1350 proper, especially Stephen Isard, Gavin Troy, Martin Neitzel.
1351 Not to forget Ryan Kavanagh and Ayan George.
1353 Note this time the changes are in reverse order, i.e., oldest first.
1355 Topic Branches
1356 ^^^^^^^^^^^^^^
1358 15fbe09 ^bf9173f 'topic/varmac-unite'
1359   Simplification and unification of variable and macro handling
1360 40f6f58 ^15fbe09 'topic/cledit1'
1361   Command line editor; new manual section `Line editor'
1362 ad28a32 ^40f6f58 'topic/termsize'
1363   Honour POSIX mailx(1) and respect $COLUMNS and $LINES on startup
1364 dc3cd49 ^a446fd8 'topic/qf'
1365   You don't wanna know
1366 b8738f7 ^0651fd0 'topic/spam1'
1367   Interaction with SpamAssassin; new manual section `Handling spam'
1368 5419d6f ^b8738f7 'topic/make1'
1369   Reworked build system; please read `INSTALL' and `conf.rc'
1370 9ab4d6b ^5419d6f 'topic/list1'
1371   Slightly tweaked message thread display, fix `:u :r' to mean it
1373 ChangeLog
1374 ^^^^^^^^^
1376 - The default PAGER is now more(1).  (But read on.)
1378 - The `echo' command is now compliant, and fully supports XSI.
1380 - The `group' and `ungroup' command aliases have been removed, they are
1381   `alias' and `unalias'.
1383 - We now have the capability of line editing and history.
1384   One may choose from not less than three different implementations:
1385   a builtin editor as well as possible linkage against BSD editline(3)
1386   and also a GNU readline(3) compatible layer.
1387   Please read the new manual section `Line editor'.
1389   Input is now compliant in that an interactive line may be continued
1390   after escaping the newline character with a backslash.
1391   [topic/cledit1]  (all of them)
1393   The *prompt* variable may now contain shell escapes, just like the
1394   `echo' command. [0938d8a]
1395   As a special extension the new \? escape, when used within *prompt*,
1396   will expand to the exit status of the last command. [41076d2]
1398 - The POSIX standard environment variables $COLUMNS and $LINES are now
1399   honoured upon startup. [topic/termsize]
1401 - The `help' / `?' commands now support abbreviation, i.e.,
1402   ``$ ? unc'' should now find `uncollapse'. [7b86195]
1404 - The `~' abbreviation that has been introduced as an alias for `call'
1405   is now a real command, not a magic shortcut. [9987289]
1407 - The new variable *quote-as-attachment* can be used to additionally
1408   embed the quoted message as a `message/rfc822' MIME attachment.
1409   [topic/qf]
1411 - The compose-mode command `~@' will now attach messages from the
1412   current mailbox if given a filename of the style `#NUMBER'.
1413   Please read the corresponding manual section `Tilde escapes', though.
1415 - The `WANT_JUNK' and `WANT_SCORE', as well as Gunnar Ritters junk mail
1416   management have been removed.
1418   Instead S-nail(1) can now support interaction with SpamAssassin, but
1419   sofar only via the spamc(1) / spamd(1) client / server pair of
1420   programs that ships as part of SpamAssassin.  The new configuration
1421   directive `WANT_SPAM' controls wether this feature is desired.
1423   Please read the new manual section `Handling spam'.
1424   [topic/spam1] (Martin Neitzel)
1426   (S-nail(1) is now *definitely* floating-point free.)
1428 - The configuration and make system have been overhauled / reorganized.
1429   The configuration is now in `conf.rc', also contains directives like
1430   `PREFIX' etc, and is always read in.  However, only those directives
1431   which are not yet set (via environment or command line overwrites) are
1432   incorporated into the set of configuration options.  Therefore
1434     $ make WANT_IMAP=0
1435     $ make WANT_IMAP=1
1437   will now build S-nail(1) twice, because of the changed configuration.
1439   Note that `WANT_GSSAPI' is now by default disabled, which shrunk
1440   a freshly started s-nail image by more than 30 percent.
1442   We're not finished yet in that there is no dependency graph etc.
1443   Please do read `INSTALL' and `conf.rc'.
1444   [topic/make1]
1446 - Message selection has been slightly bugfixed in that `:u :r' really
1447   means `:u' AND `:r'.  Compared to NetBSD Mail(1) it's still a shame.
1449   Threaded message display has been slightly changed in that within
1450   a thread identical Subject: lines are not repeated.  It may not be
1451   perfect yet due to the general list / thread state. [topic/list1]
1453 - If, upon startup, the environment variable `NAIL_NO_SYSTEM_RC' is set,
1454   then the system wide initialization file isn't read, just as if the
1455   `-n' option had been given. [1b31535]
1457 - It is now possible to use CTRL-C during connection hangs.  (But in
1458   general error recovery capabilities of the socket related
1459   infrastructure is non-existent, practically speaking.) [45a9f36]
1461 - *quote-fold* has been temporarily disabled, as it is not multibyte
1462   safe.
1464 No review for v14.4.  And today is Friday, the 13th.  Ouuuh!
1466 v14.3.2, 2013-06-21
1467 -------------------
1469 I should *maybe* should have and want to give prominence to
1470 Martin Neitzel for this, i maybe have misunderstood.
1472 - Bugfix *synchronous* *pipe-** execution..
1474   Well, unfortunately yet another newly introduced bug slept in
1475   S-nail v14.3[.1] -- [a8d724b3, Add @ and @& shell command prefixes
1476   for pipe-MIMETYPE, 2013-05-03] falsely changed the waiting state
1477   for subprocesses, as has shown up by a HTML-only mail on the
1478   Unicode list today.
1479   'Seems i'm collecting one line fixes in this codebase; this needs
1480   to change in the future.
1482 v14.3.1, 2013-06-08
1483 -------------------
1485 I want to give prominence to Juergen Daubert (jue AT jue DOT li), who
1486 reported that i've broken plain-old unfancy send mode in 14.3.
1488 + Ok, i'll hope we're out of new errors for the v14.3 series with that.
1490 - New variable: *batch-exit-on-error*.
1491   Only works if the new -# command line option has been given, and will
1492   check the "current" exit status whenever one operation completes
1493   (S-nail returns to the command prompt).
1494   If the exit status implies error (e.g., sending the last message
1495   failed) then we exit forcefully with that error status.  (The normal
1496   behaviour is that the status is reset when the command loop ticks.)
1497   [4cddd55]
1499 - While here again, i've added the new -# command line option.
1500   This is the first step to implement a reliable batch mode;
1501   unfortunately it still selects the users system mailbox on startup,
1502   because we simply cannot go to "no" mailbox for quite some time -- at
1503   some future time we will be able to go to some VOID thing, and then
1504   this will end up as a rather efficient batch mode.
1505   For now it sets *dot*, *emptystart*, *noheader* and *sendwait*, and
1506   also implies the -~ command line option.  [7549569]
1508     (
1509       printf "m ${MBOX}\n~s subject1\nE-Mail Körper 1\n.\n" &&
1510       printf "m ${MBOX}\n~s subject2\nEmail body 2\n.\n" &&
1511       echo x
1512     ) | MAILRC=/dev/null "${NAIL}" -n -#
1514 - Also, -N set *header* instead of *noheader*.  [7b4a13f6]
1515   (Juergen Daubert.)
1517 - Plain old unfancy invocations like
1519     $ s-nail user@host
1520     $ echo bla|s-nail ./FILE1
1522   had been broken (by [522cb3ec]).  [260e19d]
1523   (Juergen Daubert.)
1525 v14.3, 2013-06-03
1526 -----------------
1528 Thanks to Gavin Troy (gavtroy AT gmail DOT com) who inspired the @ and
1529 @& pipe-command prefixes.
1531 Random notes
1532 ^^^^^^^^^^^^
1534 - S-nail has been registered at Coverity Scan, and the third build
1535   (after topic branches *coverity-444* and *coverity-444.2*) produced no
1536   more errors.  (<http://scan2.coverity.com/projects/444>.)
1537   (Then i used POP3 and IMAP and fixed some SIGSEGV. ;)  Still didn't
1538   look at S/MIME, Maildir, caches etc... o()
1540 - S-nail v14.3 doesn't produce any spurious linker warnings on
1541   OpenBSD 5.3; all (correct!) use cases of strcpy() and strcat() have
1542   been replaced.  [7bdf330, 2c8d7cb]
1544 - This is the first release with a (though very short) review -- i'm
1545   slowly getting comfortable with the code.  (But i'm too stupid to
1546   perform reviews on patches, 'always did reviews on C++/Perl/xy
1547   classes.  Aaah, how beautiful ... objects.)
1549 ChangeLog
1550 ^^^^^^^^^
1552 - It is now possible to "call" macros without using the `call' command
1553   by prefixing them with a tilde, as in
1555     ? define au {
1556       echo auau
1557     }
1558     ? ~au
1559     auau
1560   [93ea8acd]
1562 - Added the *pop3-bulk-load* option.
1563   Yes, there are mailing lists etc. which use plain text email, and,
1564   there, headers are often more data than the body, so it doesn't make
1565   sense to download the headers twice (unfortunately POP3 doesn't
1566   support a BODY command; if only it would support a RETRDELE command..)
1567   [978e13a7]
1569   And yep, from this changeset on i personally use S-nail even over the
1570   network, no longer my stale and incomplete S-Postman.  And i can tell
1571   you, this damn thing is so silent, i always set *verbose* not to go
1572   grazy ... but .. i hate to say it .. the healing will take time.
1574 - POP3 will now try to use APOP authentication automatically; thus the
1575   *use-apop* stuff has been replaced by *pop3-no-apop* options (just in
1576   case there are POP3 servers which advertise they support APOP but in
1577   fact fail to do so; anyone?)  [6c3c5575]
1579 - Some IMAP segmentation violations have been fixed:
1581     ? fi imaps://user1@localhost
1582     Password:Interrupt            <- CNTRL-C
1583     ? set imap-auth=cram-md5      <- hey, 'forgot to set correct auth
1584     ? fi imaps://user1@localhost
1585     IMAP write error: error:140D00CF:SSL routines:SSL_write:protocol is shutdown
1586     Segmentation fault
1588   And also, when *folder* was set to an IMAP account but hasn't been
1589   opened yet, and no IMAP account ever has been opened, a string
1590   comparison against a NULL pointer yet caused a SIGSEGV, too.
1591   [417c01f, 413c23d9]
1593 - `set folder=' now tolerates `%:' and expands PROTOs stuff etc.:
1595     ? short xp %:imaps://user1@localhost
1596     ? set folder=xp
1598   Pure convenience so that it doesn't need to be typed twice (still no
1599   completion in sight...).  Note that setting *folder* to a POP3 box
1600   will now be actively rejected.  [b12b17f5]
1602   NOTE: while implementing this i've detected another dead-end
1603   miscondition in S-nail -- you really should ensure that your target
1604   folder/box is connected before you leave your current POP3/network
1605   based folder, if there is data to be moved to the target (i.e.,
1606   mbox).  This problem will persist for a long time due to the way the
1607   entire codebase functions; i hope i can find a short/mid-term
1608   solution, but the real healing will take years.  The mentioned
1609   solution would at least make S-nail interruptable, currently we get
1610   stuck and interrupts are blocked...
1612 - If you're using S-nail on Mac OS X and have seen some segmentation
1613   faults when expanding shell stuff then you may be pleased to hear that
1614   S-nail now works around an Apple bug.  [63273772]
1616 - The builtin mime.types have been corrected and a lot of new ones have
1617   been added.  New data from
1618   <http://svn.apache.org/viewvc/tika/trunk/tika-core/src/main/resources/\
1619   org/apache/tika/mime/tika-mimetypes.xml>, thanks!  [8072fcb6]
1621 - BEWARE: handling of command line arguments has changed a bit!
1623   1. The -D, -d, -E, -i, -N and -v command line options are now
1624   implemented by means of setting the respective option, as via -S.
1625   (This means that from now on resource files can only *temporarily*
1626   overwrite command line arguments.)
1628   2. The -I and -T command line arguments have been dropped.
1629   It seems Gunnar Ritter stopped developing nail/Heirloom mailx once he
1630   started implementing Newsreader functionality.  It'll take a long time
1631   until we get there, so for now drop all the Newsreader stuff.
1633   3. Handling of -r has been changed.  E.g.:
1635     s-nail -A test -Snoeditalong -r 'La mort est <fem@me>' -d
1636     ? set from=bummer@m1.com
1637     ? m t1
1638     Subject: s1
1639     .
1640     Sendmail arguments: "sendmail" "-i" "-r" "fem@me" "t1"
1641     ? set from=bummer@m2.com
1642     ? m t2
1643     Subject: s2
1644     Sendmail arguments: "sendmail" "-i" "-r" "fem@me" "t2"
1646   ...
1648     s-nail -A test -Snoeditalong -r '' -d
1649     ? set from=bummer@m1.com
1650     ? m t1
1651     Subject: s1
1652     .
1653     Sendmail arguments: "sendmail" "-i" "-r" "bummer@m1.com" "t1"
1654     ? set from=bummer@m2.com
1655     ? m t2
1656     Subject: s2
1657     Sendmail arguments: "sendmail" "-i" "-r" "bummer@m2.com" "t2"
1659   [*main-fun-cleanup* topic branch]
1661 - *smime-sign-include-certs-** stuff works again, oops..  [9a8597c6]
1663 - A whole lot of smallest and small fixes due to registration at
1664   Coverity Scan, as project 444.  Error handling in S-nail is ridiculous.
1665   [*coverity-444* and *coverity-444.2* topic branches.  The sheer number
1666   of fixes was the reason to sit down and go for unplanned S-nail v14.3]
1668 - *idna-strict-checks* has been dropped.  It's silly to have in a MUA,
1669   especially given that GNU LibIDN doesn't ship with a lot of rules.
1670   We were able to drop quite some code (and a use-after-free, too :().
1671   [c81fd41d]
1673 - The ~p tilde command displays attachments more verbose.
1674   Until the big big MIME and send layer rewrite :) this is intermediate
1675   since until then we do not really know neither MIME type nor charset
1676   of an attachment at the time this is displayed (for sure).  Yet
1677   i think it's nicer to show what we have than keep it the way it was.
1678   [60e70463]
1680 - @ and @& shell command prefixes have been added for the pipe-MIMETYPE
1681   mechanism.  The former suppresses filters if multiple messages are
1682   displayed at once, the latter adds asynchronous program execution on
1683   top of that.  E.g., to display PDF documents, but only if you
1684   *explicitly* address the message *alone and by itself*, and without
1685   blocking S-nail and the $PAGER, do:
1687     set pipe-application/pdf="@&cat >"${TMPDIR}"/s-nail${$}.pdf;\
1688       mupdf "${TMPDIR}"/s-nail${$}.pdf; rm "${TMPDIR}"/s-nail${$}.pdf"
1690   (Inspired by Gavin Troy.)  [a8d724b3]
1692   Note: most of that had been posted to nail-devel@ already, but it was
1693   tweaked ([251b636]) so that you now *really* have to say `p MSGNO' to
1694   get there.
1696 - The NETLESS CONFIG= has been removed; it is almost identical to
1697   MINIMAL now (i.e., without WANT_JUNK and WANT_SCORE).
1699 - WANT_JUNK and WANT_SCORE have been disabled by default.
1700   They don't seem to be too useful; i hope i can implement
1701   a SpamAssassin hook for (downloaded) mail messages for v14.4.
1702   If so, expect these two "modules" to become removed completely.
1704 v14.2.2, 2013-05-01
1705 -------------------
1707 Another unplanned (minor) bugfix release after Gavin Troy (gavtroy AT
1708 gmail DOT com) pointed out that MIME CTE decoding was broken, who
1709 i therefore want to give a lot of prominence right here.
1711 - Fix MIME content decoding which has been broken by [01c0e135].
1712   [882caedd]
1713   (Gavin Troy.)
1715 v14.2.1, 2013-04-30
1716 -------------------
1718 An unplanned (minor) bugfix release after i've found two bugs today and
1719 heard from Jérémie Courrèges-Anglas (jca+nail AT wxcvbn DOT org) that
1720 there exists a S-nail OpenBSD package.
1722 I want to give prominence to the following people that helped to
1723 improve S-nail(1) during this development cycle, in order of
1724 appearance: Dirk Peters (peters AT schwertfisch DOT de).
1726 Thank you very much, and best from Germany!
1728 - Some warnings of newer clang(1) versions were silenced, including yet
1729   another alloca(3) problem (see *memtracer* topic branch in v14.0
1730   series).  [6f846efe]
1732 - Tweaking the MIME boundary detection left a little hole that could
1733   cause boundaries not to be detected, as has been shown by a Microsoft
1734   Word generated mail on the ICU list.  [11e5fb5b]
1736 - A format string could overflow bounds if unrealistic
1737   (18446744073709551615) line numbers or message sizes would have been
1738   produced.  [faa65c40]
1740 - An algorithmic error could cause overlong lines which wrapped around
1741   to the next display line.  [ade52660] 
1742   (Dirk Peters.)
1744 v14.2, 2013-03-15 [v14.1, 2013-03-12]
1745 -------------------------------------
1747 I want to give prominence to the following people that helped to
1748 improve S-nail(1) during this development cycle, in order of
1749 appearance: Martin Neitzel, Christos Zoulas, Stephen Isard, jgw@txo.org
1750 and Gavin Troy.
1752 Thank you very much, and best from Germany!
1754 + v14.2 differs from v14.1 only by one commit, one that fixes
1755   (mime_fromhdr(): partial rewrite using n_iconv_str(), 2013-03-12),
1756   which i hastily implemented just hours before the release of v14.1,
1757   and simply shouldn't have made it (into there).
1758   The v14.1 tarball has been removed from the server.
1760 - A fix for the quoted-printable codec: "message truncation" occurred
1761   when a mail maliciously used a soft linebreak to escape the linebreak
1762   of a completely empty line.
1763   (That resulted in 0 written and 0 leftover bytes, a condition that was
1764   declared erroneous back in november 2012 when i started handling I/O
1765   errors.)
1767 - The "folders" command will work again when given an argument.
1768   A fault of mine introduced in (cmd1.c: expand() may fail, 2012-10-23).
1770 - The Base64 codec has been touched again, and we are finally capable to
1771   perform sequential decoding; this was targeted for the MIME/send layer
1772   rewrite, but it actually was possible today.
1773   The result as seen in ps(1), running on the Base64 encoded HTML5
1774   standard (4622545 bytes HTML, with a NUL appended to force Base64
1775   encoding, resulting in a 6244793 bytes email):
1777    7420 s006  S+    2:22pm 0:10.65 plain-nail -f HTML5
1778    1440 s006  S+    2:23pm 0:00.36 ./s-nail -f HTML5
1780   (So the only thing that is left for a good throughput is sequential
1781   decoding of quoted-printable encoded parts that maliciously use soft
1782   linebreaks to convert an entire part to a single line.  And i've seen
1783   that from Apple Mail.)
1785 - New option: *mime-allow-text-controls* (rather long manual entry).
1787 - *smtp-auth-password-user@host* and *smtp-auth-user-user@host* will
1788   finally work!
1789   (Reported by jgw@txo.org in November 2011, fixed by Gavin Troy in
1790   January 2012.)
1792 - Most *headline* formats now do support the '-' left-alignment flag.
1793   Note that you most likely have to change your *headline* accordingly.
1794   (The still missing %n format is one reason why there will be v14.2.)
1796 - *datefield* and *datefield-markout-older* can now be set to
1797   strftime(3) format strings (except %n).
1798   (From Stephen Isard's wishlist.)
1800 - A possible SEGV has been found and also fixed by Stephen Isard.
1801   (The "legendary" cross-world stereo fix!)
1803 - Wow!  S-nail will finally compile on GNU based Linux systems like
1804   Slackware 14 etc.  (Found while hunting bug reported by
1805   Stephen Isard.)
1807 - New option: *datefield-markout-older* can be used to choose
1808   a different date display for mails that are older than six months,
1809   in equal spirit to what POSIX describes for the -l option of the ls(1)
1810   command (Stephen Isard).
1812 - (Exotic) Years are (would) now (be) interpreted correctly according to
1813   RFC 5322, 4.3.
1815 - CRAM-MD5 usage has been fixed.
1817 - *folder* updates are now tracked when set, and we will show the
1818   realpath(3) name of it, showing PREFIX..SUFFIX if that wouldn't fit on
1819   the display.
1820   Tracking updates made it also possible to perform other more expensive
1821   tasks when setting *folder*, so that it is now possible to do
1822   something like:
1824     :set folder=$HOME
1825     :set folder=~
1827   et cetera (both ideas by Christos Zoulas).
1829 - Bugfix for the ~@ tilde-escape in non-interactive mode.
1830   (readtty(): quick shot: work in pipelines (on non-TTY).., 2013-01-25)
1831   introduced the possibility to "read data from the terminal" (STDIN
1832   that is) in non-interactive mode.
1833   The manual documents that attachment input must be terminated with an
1834   empty line, but if that had been omitted, as in the example below, we
1835   would have yet entered an endless loop.
1837      $ cat <<_EOT | /s-nail -~ -s boom ./OUT
1838     ~@
1839     test.c
1840     charset
1841     _EOT
1843 - Alias expansion will now be performed for members of Reply-To: fields
1844   (Martin Neitzel).
1846 - Decoding quoted-printable will now be more relaxed.
1847   (Even though the standard says that users should be given a hint when
1848   input is not absolutely clean; a possible warning will be added later,
1849   when we have an error message ring.)
1851 - New option: *mimetypes-load-control* can be used to control which of
1852   the mime.types resources will be loaded.
1854 - The builtin default mime.types have been extended a bit.
1856 v14.0, 2013-02-10
1857 -----------------
1859 I want to give prominence to the following people that helped to
1860 improve S-nail(1) during this development cycle, in order of
1861 appearance: John Dodson, Gianluca Ramunno, and Anon Ymous from the
1862 NetBSD project.
1864 Random notes
1865 ^^^^^^^^^^^^
1867 - Encoding defaults to *quoted-printable* not *8bit*.
1868   This has no technical background except that i think it's the better
1869   default.
1871 - Small progress for the "getting stuck due to the current folder
1872   becomes inaccessible due to whatever reasons"  problem.
1873   (schdir(): realpath() local files before leaving CWD.., 2013-01-08)
1875 - The names of temporary files have changed.  Whereas not all uses of
1876   temporary files already use really meaningful names, it has yet become
1877   possible to use the pattern "*mail-*"; or, to be compatible with
1878   NetBSD Mail(1) in one go, "*mail*".  (E.g., in my ~/.vimrc you'd read:
1879     :au   BufRead,BufNewFile *mutt*,*mail* setl fenc= | setf mail
1880   [the *mutt* is a leftover from times when i've used MUAs that suck].)
1882 ChangeLog
1883 ^^^^^^^^^
1885 - The Quoted-Printable MIME handling has been rewritten completely.
1886   We now correctly encode files with the MS-DOS newline sequence (CRLF).
1887   (Part of the *mime-cte* topic branch.)
1889   S-nail(1) continues to be able to handle text messages and text
1890   attachments without a trailing newline, but because these
1891   Content-Transfer-Encoding related things are now handled by the C-T-E
1892   layer instead of by sendout.c a text message body that comes in as
1893   part of a complete message via the -t command line option will loose
1894   the missing final newline (i.e., it'll gain one).
1895   This problem does *not* occur when *only* the message body comes in
1896   via STDIN, as in 'cat FILE | s-nail', but *only* when the -t option is
1897   used.
1898   (sendout.c: does no(t/ longer) know about CTE internals!, 2013-02-09)
1900 - Filename arguments for -a are now processed *after* all the resource
1901   files have been loaded etc., so that the usual "folder" specifics can
1902   be used (provided that proper care for shell quoting was taken).
1903   ((main(): delay -a processing.., 2013-01-10), as a part of the
1904   *mainaflags* topic branch.)
1906 - (d38c5bd, When the write command asks.., 2004-11-23) added support
1907   for pipes when saving attachments during a "write" command.
1908   It however used the wrong SIGPIPE signal handler; e.g.:
1910     Enter filename for part 2 (application/x-gzip): |exit
1911     Segmentation fault
1913   Of course, it still performs a jump and that most likely leaves memory
1914   chunks behind, thus causing some memory leaks.  This will be
1915   a long-term problem (you may want to read [mime.c:fwrite_td(): TODO
1916   notes on unfixable leaks, 2013-01-14] for more).
1917   (send.c:sendpart(): fix longjmp() SIGSEGV.., 2013-01-29)
1919 - Fixed a name quoting regression that i've introduced in
1920   (Rewrite *extract().., 2012-10-20), that would have caused
1921   "x \"y\" z" to become "x"y" z" instead of "x "y" z".
1922   (S-nail still does not really have RFC compliant parsers, just as
1923   NetBSD Mail(1) has, i.e., there are structured and unstructured fields
1924   etc...  I hope i can provide them in v15.0.)
1925   (names.c:yankname(): fix quote regression.., 2013-01-29)
1927 - The IDNA conversion now assumes domain names are specified in
1928   *ttycharset*, rather than in the LC_CTYPE locale charset.
1929   I.e., it integrates into the usual character set specifications.
1930   (IDNA: honour *ttycharset* for domain names, 2013-01-18)
1932 - The new *editalong* variable will automatically spawn an editor when
1933   composing a mail in interactive mode, just as if `~e' was given.
1934   (Add new *editalong* variable, 2012-01-07)
1936 - The manual has been converted to mdoc.
1937   (The manual has been converted to mdoc, 2012-12-28)
1939 - The ~@ tilde escape, when given filename arguments, will treat the
1940   arguments as a comma-separated instead of a whitespace-separated list.
1941   (collect: change separator of ~@ tilde escape.., 2012-12-28)
1943   The interactive mode of ~@ has also been changed, rather massively.
1944   Please do reread what the manual says.
1945   ((collect: support multiple attachment charsets.., 2013-01-23), as
1946   part of the *attach* topic branch.)
1948 - Thanks to Gianluca Ramunno (ramunno DOT gianluca AT gmail DOT com)
1949   S-Nail will no longer try to issue a STARTTLS command when it is about
1950   to establish a SMTPS connection, a task that logically fails since the
1951   connection is already secured.
1952   (Interestingly the nail codebase performs the necessary test for IMAP
1953   and POP3 already.)
1954   While here the undocumented nail v11.0 *smtp-use-tls* legacy option
1955   has been removed.
1956   (Fix SMPTS with a set *smtp-use-starttls*.., 2012-12-22)
1958 - The RFC 4155 compliant MBOX quoting is now exclusively used, the
1959   shitty *posix-mbox* variable has been removed again.
1960   (Shitty because i've implemented RFC 4155 compliant MBOX quoting and
1961   tested it, then added *posix-mbox* for those who liked the old
1962   behaviour and did not re-test -- the final code path was buggy.)
1964   In mails newly created and saved by S-nail(1) no From_ quoting at all
1965   will be used no more, but instead the rewritten MIME file classifier
1966   will detect unquoted From_ lines and enforce quoted-printable encoding.
1967   (This is an approach that is S/MIME compatible all through the way as
1968   the file data is not modified at all, but only encoded, so that the
1969   data checksum is not changed.)
1971   In yet existent mails that S-nail copies or moves around without
1972   reclassification an RFC 4155 compliant From_ line detector will apply
1973   MBOXO quoting (prepend a single '>') as necessary.
1974   Different to the old MBOXRD behaviour S-nail will neither quote yet
1975   quoted From_ lines ('>>From xy' -> '>>>From xy') nor will it unquote
1976   one quote level when reading etc. mails ('>> From xy' -> '>From xy').
1977   As a result the code could be simplified.
1979   This changeset also incorporates a fix for NetBSD PR bin/47453, as
1980   reported by Martin Brandenburg.  I.e., some mailers, noticeably
1981   UW-imap (with MBX format only?), use non-compliant From_ lines with
1982   RFC 822 date specifications.  Be aware of 'em.
1983   (RFC 4155 MBOX, and drop *posix-mbox* and foldergets().., 2013-01-06)
1985 - *rfc822-show-all* has been removed.
1986   It didn't work properly for more complex MIME structures, like
1987   message/rfc822 messages with attachments etc., just as i've seen today
1988   on the file(1) mailing list.
1989   So, instead of hacking it now i've dropped it and will come back with
1990   a better solution when the MIME and send layers have been overhauled.
1991   I.e., the real intent was to be able to specify that an embedded
1992   message/rfc822 is treated as a *unity*, and that's the goal.
1993   (Drop *rfc822-show-all*, 2013-01-23)
1994   [The manual will be adjusted in a different commit.]
1996 - *rfc822-no-body-from_* has been renamed to *rfc822-body-from_*.
1997   It thus must be set explicitly.
1998   On the other hand it now catches all cases...
1999   (*rfc822-no-body-from_* -> *rfc822-body-from_*, 2013-01-23)
2000   [The manual will be adjusted in a different commit.]
2002 - The new *charset-7bit* (defaults to US-ASCII) and *charset-8bit*
2003   (defaults to UTF-8) have been introduced.
2004   These are used if seven bit clean data is to be sent, and no
2005   *sendcharsets* are set or the convertion of all of them failed,
2006   respectively:
2008   - There is no functional change unless there is iconv(3) support.
2009   - There is no functional change unless you set them.
2010   (Introduce *charset-8bit* and *charset-7bit* variables.., 2013-01-18)
2011   [The manual will be adjusted in a different commit.]
2013   In addition the new *sendcharsets-else-ttycharset* variable can now
2014   be used to automatically use *ttycharset* as a *sendcharset(s)*,
2015   regardless of the new *charset-8bit* variable.
2016   (Add *sendcharsets-else-ttycharset* variable, 2013-01-24)
2017   [The manual will be adjusted in a different commit.]
2019   NOTE: before we apply charset conversion we now perform a string
2020   comparison to see wether character sets are identical.  If the strings
2021   match (case-insensitively), then *no* conversion is performed.
2022   This means that code like
2024     $ printf "LATIN1: \0376" | s-nail -Ssendcharsets= -s boom ./out.txt
2026   *succeeds* in an UTF-8 environment now, whereas older versions would
2027   fail with an "illegal byte sequence" error (unless the iconv(3)
2028   library of the system would not perform any conversion that seems
2029   superflous, of course).
2031   I thought about making this optional, but, in fact, if this would be
2032   done in an environment without iconv(3) support then the result would
2033   be equally corrupt.  And the way it is now we save the expensive and
2034   superflous conversions.  (See TODO for more.)
2036   Please *do* reread the manual section "Character sets".
2037   +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2039 - An attempt was made to improve MIME Content-XY: detection.
2040   It should be more RFC compliant, and just overall better :);
2041   a simple one-pass classifier cannot match libmagic(3), of course.
2043   This changeset removes support of the long obsoleted (4fee1ef,
2044   2005-01-06) *charset* variable, as well as for the
2045   *maximum-unencoded-line-length* variable that has been introduced in
2046   (48a652bd, 2005-07-26).
2048   For S-nail v14.0 it'll be no longer necessary to do
2050     $ tr -d '\015' < input | s-nail ...
2052   to transport files which use the $-DOS (terminal) newline (sequence).
2053   We still depend upon *sendcharsets* for a while, though.
2054   (Rewrite file-content classification.., 2013-01-02)
2056 - The new *mime-counter-evidence* variable can be used to force
2057   a classification of non-text MIME parts (attachments) by their
2058   filename, i.e., a "reverse-classification" just as would be performed
2059   if S-nail(1) would itself *send* the file(name).  This can help
2060   against some stupid MUAs (Apple Mail?) that send .diff etc. files as
2061   `application/octet-stream' parts etc.
2063   At a later time this may become a valued option, causing a temporary
2064   save of unnamed attachments followed by a MIME classification of the
2065   file contents, followed by forced treatment as plain text if it seems
2066   to be human readable.  But not yet.  Just to warn you.
2067   (Add *mime-counter-evidence* variable.., 2012-12-29)
2069 - The special "pipe-" command "@" can be used to force treatment of
2070   a MIME message part as plain text (e.g.,
2071   'set pipe-application/pgp-signature=@' will henceforth print those
2072   signatures inline and as plain text).
2073   (Introduce the special "@" "pipe-" command, 2012-12-27)
2075 - The MIME types (as from mime.types(5)) will now be cached.  Before
2076   all possible sources would have been opened, read and parsed for each
2077   and every message part that required detection of the MIME
2078   Content-Type:.
2079   The new "mimetypes" command can be used to show or clear that cache.
2080   (Add mime.types(5) cache.., 2012-12-27)
2082 - A small set of MIME types (template: ./mime.types) will now become
2083   compiled into S-nail(1), and be used as a fallback if there are no
2084   ~/.mime.types and/or no /etc/mime.types, or those didn't contain
2085   a matching type.  E.g., NetBSD 6 doesn't ship a default database.
2086   Also, file extensions will be matched case-insensitively (case of
2087   attribute values is not specified afaik?).
2088   (Introduce compiled-in mime.types(5).., 2012-12-21)
2090 - The undocumented *charset7* variable was removed.
2092 - The "Message X:" display leader has been changed and will henceforth
2093   be matchable via "^[-- Message \d+ -- \d+ lines, \d+ bytes --]:$".
2094   These lines can no longer be suppressed by setting the *quiet*
2095   option (which was yet possible for print and top, though undocumented).
2096   (Change "Message X:" display message.., 2012-12-20)
2098 - When displaying multipart messages the "Part X:" introductional string
2099   has been changed; if the Content-type: header is not *retain*ed, then
2100   this string will include the part's type and size.  Ditto for
2101   Content-disposition: and a mentioned attachment filename.
2102   This is a first step only, for the final version the MIME and send
2103   layers will have to be adjusted.  But the string will be matchable via
2104   a "^[-- #.* --]$" regular expression from now on.
2105   (Change "Part X:" display message.., 2012-12-20)
2107 - MIME boundaries in multipart messages are now handled better in that
2108   no boundary string should get through to the display.
2109  (Tweak MIME boundary detection.., 2012-12-20)
2111 - A couple of long standing, even pre-Heirloom mailx(1) memory leaks and
2112   segmentation violations, most of them related to configurations
2113   without alloca(3) support, as well as one leak that i have introduced
2114   when i implemented RFC 4155 MBOX handling, have been fixed.
2115   But S-nail should now survive non-alloca(3) configurations.
2116   (*memtracer* topic branch.)
2118 - The Base64 MIME handling has been rewritten completely.
2119   This was an urgent topic, because the old implementation (a) read in
2120   all lines of a base64 encoded text part, repeatedly resizing a string
2121   storage and repeatedly decoding that string until all the lines have
2122   been swallowed (i.e., or by accident the last decoded byte was
2123   a newline character, and that in turn may of course have fucked up for
2124   multi-octet encodings, dependent on the actual byte-order), (b) used
2125   function local static data to keep state in between multiple
2126   invocations, which messed up multi-byte/-octet encodings like this
2128     �5��ɽ���Aɥ����́��٥��������[lots of data follows]
2130   and (c) did not perform any error checking at all.
2131   The new one does not run into the problem that (a) tried to circumvent
2132   since leftover decoded data (as opposed to leftover *encoded* data) is
2133   transported along the call-chain for later use.  It adds a minimal set
2134   of error handling ('may now see "[Invalid Base64 encoding ignored]"),
2135   with more to become possible in later S-nail versions when the entire
2136   layers are reworked.  (Until then DOS newline sequences [CRLF]
2137   embedded into base64 will no longer be decoded to Unix LF newlines.)
2138   Base64 encoded lines will now be 76 characters long, as stated (as
2139   a maximum value) in RFC 2045, not 72 as before.
2141   The Base64 code core has been shamelessly stolen from NetBSD's
2142   Mail(1), and i guess it was the second time that this happened :=).
2143   (*base64-rewrite* topic branch; and reworked later on the *mime-cte*
2144   topic branch.)
2146 - The string allocation strategy has been tweaked some more to, i think,
2147   a final version (regarding algorithm).
2148   In normal non-interactive send mode it should now no longer need any
2149   dynamic memory at all (unless some dozen recipients are specified).
2150   (Several other places still use normal dynamic memory, of course.)
2151   (*dope-stringdope-again* topic branch.)
2153 - Support for NSS (Network Security Services) has been removed.
2154   I've never worked with it and are, regarding the complexity of
2155   network security, not willing to spend any time on it.
2156   SSL is installed on all systems i'm using and/or testing on by
2157   default, and so i've choosen to go this way.
2158   (It may be that sometime in the future S-nail will add support for
2159   libcurl(3) connectivity, and then it may happen that not only NSS
2160   support is reintroduced again, but also GNU TLS.  All of that applies
2161   to network connectivity only, however, not to S/MIME afaik.)
2162   (*drop-nss-support* topic branch.)
2164 - I finally got a glue and understood that Sourceforge does (a) not
2165   support symbolic links and (b) doesn't like dots as regular parts of
2166   filenames.  This means that all this time the promised s-nail.tar.gz
2167   symbolic link did not work, and that s-nailv13.3.tar.gz wasn't
2168   accessible either (via the web interface).
2169   In the future S-nail(1) will not provide any more symbolic links (the
2170   Sourceforge website offers a "download latest" thing which seems to
2171   work), and use underscores in filenames -- s-nailv13.3.tar.gz has been
2172   renamed to s-nailv13_3.tar.gz.  The tags continue to use dot notation.
2173   Thanks.
2175 - The *heirloom-plus* support branch has been removed.
2176   The code bases diverged a lot and even more to come.
2177   It doesn't make sense to put any effort in that.
2179 v13.3, 2012-11-11
2180 -----------------
2182 - Configuration on UnixWare 7.1.4 will succeed (shell issue fixed).
2184 - Even on DragonFly BSD the IMAP GSSAPI is now found
2185   (in /usr/pkg/include/krb5/gssapi/gssapi.h).
2187 - Support for pkgsrc(7) systems and automatic integration of
2188   C_INCLUDE_PATH and LD_LIBRARY_PATH path configurations.
2189   Please see INSTALL.
2191 - Fixes a mortally embarassing regression that the current maintainer
2192   introduced before i really knew what i was doing, in (If *record* is
2193   set, avoid writing dead content twice.., 2012-09-14).
2194   It hit users that send through a MTA and have *record* set; in this
2195   combination data would not have reached the MTA.
2196   Interested parties may read the comment in savedeadletter() (part of
2197   the changeset) or the (Fix MTA/*record* descriptor clash..,
2198   2012-11-10) commit log.
2200   Deepest apologies to tortured users from the current maintainer!
2202 - RFC 4155 compatible MBOX file handling has been introduced, and so
2203   S-nail is now on par with (at least) NetBSD Mail in respect to this.
2204   It can be turned off with the new *posix-mbox* variable, which you may
2205   need to use since not all MUAs are capable to dig those MBOX files.
2206   E.g., less cutting-edge (.-) MUAs fail for this:
2208    |From - Thu May 10 20:40:54 2012
2209    |Date: Wed, 07 Nov 2012 11:48:30 +0100
2210    |To: super@duper.com
2211    |Subject: super1
2212    |
2213    |From me.
2214    |
2215    |From - Thu May 10 20:40:54 2012
2216    |Date: Wed, 07 Nov 2012 11:48:30 +0100
2217    |To: super@duper.com
2218    |Subject: super2
2219    |
2220    |>From - Thu May 10 20:40:54 2012
2221    |From - Thu May 10 20:40:54 2012
2223   I'm not completely happy since S-nail *does* still quote those lines,
2224   how rare they may be -- it *does* modify message content.  mutt(1)
2225   implements something more clever and that is quoted-printable encoding
2226   of the "F" from "From", when seen at the beginning of a line.
2227   This, when applied to just *any* "^From", will be a non-modifying and
2228   all-compatible solution.
2230 - SEND_MBOX handling has been changed to discard any Content-Length: and
2231   Lines: headers when it rewrites a message by default.
2232   I know that mutt(1) generates them (why, after
2233   http://www.jwz.org/doc/content-length.html?).
2234   Anyway, S-nail does neither use nor manage them, so that any
2235   modification renders those fields invalid, and then it seems best to
2236   discard them anyway.
2237   You may turn the new behaviour off with *keep-content-length*.
2239 v13.2, 2012-11-03
2240 -----------------
2242 The problem was that i really wanted to release on a 25th.
2243 But i have been able to improve S-nail(1) some more, so that this is
2244 possibly the first real release of it.  So i'll add only things that
2245 have changed since v13 -- please see below for the complete picture.
2247 - A new CONFIG=CUSTOM make directive was added, and the new user.conf
2248   variables WANT_SCORE and WANT_DOCSTRINGS have been added.  It is
2249   possible to create a floating-point free S-nail(1) now.
2250   Please see INSTALL.
2252 - If a feature is disabled not even functions stubs should remain now.
2254 - Many places which will work only with local filenames do now actually
2255   check that the target is a local filename.
2257 - Space-separated lists should work again, at a few places at least.
2259 - Tilde commands will be possible, even with -r.
2261 - The *sendmail-progname* has been added after NetBSD 6 dropped the
2262   send-mail entry in mailer.conf(5), which broke S-nail(1).  Now users
2263   have an option.
2265 - When editing messages via ~e or ~v file and pipe addressees will no
2266   longer be lost.
2268 - If recipients occur multiple times spread over lists, i.e., To:, Cc:,
2269   Bcc:, then only one occurrence remains, and in the "highest-order"
2270   list.
2272 - The "list" command prints the list alphabetically sorted (somewhat).
2274 - The "help" and "?" commands take an optional argument that shows
2275   a synopsis string for the given command (unless WANT_DOCSTRINGS was
2276   false).
2278 - String allocations are now more efficient.  The situation can still be
2279   improved.  However, for the first time Berkeley Mail(1) integrates
2280   harmonically into the system allocator, which may madvise(2) unused
2281   memory to the operating system as necessary and/or possible!
2283 v13.1, 2012-10-25
2284 -----------------
2286 Well, a version number 13 is anyway an ugly thing...
2288   commit 4f534bb33b7c911272cc66a0e3a9e47b73ad8deb
2289   Date:   2012-10-25 20:46:07 +0200
2291       FIX MIME quoted-printable encoding (char cast)..
2292       
2293       (;-{
2294       Auauauauau!!
2295       
2296       Well, one of the things that have already been started in v13 is
2297       the turn from using "int" when working with 8-bit characters to
2298       "unsigned char" (and as long as we do not support wide
2299       characters).
2300       
2301       Unfortunately one very important piece of code, that is handling
2302       encoding to quoted-printable, still used integer instead of
2303       unsigned char, which caused an automatic extension cast to take
2304       place, and that resulted in a messed up output.
2305       Sorry!
2307 v13, 2012-10-25
2308 ---------------
2310 I want to give prominence to the following people that helped to improve
2311 S-nail(1) during this development cycle, in order of appearance: Martin
2312 Neitzel, Ezequiel Garzón, Björn Persson, Paul Vojta, and, especially,
2313 John Dodson for warm words from beautiful Australia!  Many thanks also
2314 to Christos Zoulas.
2316 After i've officially forked nail(1) aka Heirloom mailx(1) as S-nail(1)
2317 on 2012-09-18 i have been able to work five weeks almost fulltime on
2318 S-nail(1) development.  The first three weeks can be characterized as
2319 hectic fireworks here and there, but then it got better and i was able
2320 to work more or less topic-centric.  In the meanwhile S-nail(1) is more
2321 than 230 commits away from the Heirloom base--and drifting further apart.
2323 S-nail(1) v13 is the first release of S-nail(1), but it was forked from
2324 Heirloom mailx(1) 12.5 7/5/10 that arose from Berkeley Mail 8. unless
2325 i'm mistaken.  What characterizes S-nail(1) v13?
2327 - The build system has been reworked almost completely.
2328   It is possible to fine-tune which features should be present in the
2329   binary and which don't.  The name of the binary can be chosen, and
2330   that choice is reflected all through the manual and the template
2331   resource file.  The manual is always complete and thus may document
2332   features that are not supported by the actual binary, though.
2333   Please see INSTALL for more.
2335 - Compiler warnings can now be used.  Please see the example WARN= flags
2336   in the Makefile, but '-Wall -Wextra -pedantic' should be silent though
2337   certainly insufficient to reflect the complex work of modern compilers.
2339 - The following recipient address list combines some of the major
2340   improvements that have been made:
2342     <addr1@cdröm.de>  (bier) , ./file1,
2343     Steffen Smöregäs (Humbabä) <sauer@bäüer.de> (Hummpäa)    ,
2344          sabberlot@träbbel.de  ,  (bier2) <a2@bür2.de> ,
2345        a3@b3.de (bier3)  , <a4@b4.de> (bier4, und \"bier5\")  ,
2346     |cat > pipe1 ,   (bier 6) <a6@bür6.de>  ,   ./file2        ,
2347     (co\$mm1) abc1@düf.de (cö,bmm,2)   (co\"m\"m.3) ,
2348     co\$bmm1 \"c,ömm2\" co\"m\"m.3 <abc2@däf2.de>  ,  |cat > pipe2 ,
2349     moppel@höppel.org
2351   That, on a single line, may be given to ":m" or (quoted) on the
2352   command line, or to "~c" or whatever, and it will work as expected
2353   (well, everything else would be a bug..) and result in the following
2354   sendmail(1) invocation:
2356   SENDMAIL.SH
2357   <-i a2@xn--br2-hoa.de a3@b3.de a4@b4.de a6@xn--br6-hoa.de abc1@xn--df-xka.de abc2@xn--df2-qla.de addr1@xn--cdrm-7qa.de moppel@xn--hppel-jua.org sabberlot@xn--trbbel-cua.de sauer@xn--ber-qla4j.de>
2358   >>>>>>>>>>>>>>>>>
2359   Date: Thu, 25 Oct 2012 17:12:15 +0200
2360   To:
2361   Cc: Steffen =?utf-8?Q?Sm=C3=B6reg=C3=A4s?=
2362     =?utf-8?Q?_(Humbab=C3=A4)?= <sauer@xn--ber-qla4j.de> (=?utf-8?Q?Hummp=C3=A4a?=),
2363     sabberlot@xn--trbbel-cua.de, moppel@xn--hppel-jua.org,
2364     <addr1@xn--cdrm-7qa.de> (bier),
2365     co$bmm1 =?utf-8?Q?"c,=C3=B6mm2"?= co"m"m.3 <abc2@xn--df2-qla.de>,
2366     (co$mm1) abc1@xn--df-xka.de (=?utf-8?Q?c=C3=B6,bmm,2?=) (co"m"m.3),
2367     (bier 6) <a6@xn--br6-hoa.de>, <a4@b4.de> (bier4, und "bier5"),
2368     a3@b3.de (bier3), (bier2) <a2@xn--br2-hoa.de>
2369   Subject: Re: SubjectTest
2370   MIME-Version: 1.0
2371   Content-Type: text/plain; charset=us-ascii
2372   Content-Transfer-Encoding: 7bit
2374   body
2375   <<<<<<<<<<<<<<<<<
2377   So list parsing has been fixed, IDNA support has been added, and it is
2378   possible to mix pipe and file recipients *and* multiple thereof, and
2379   the result is still correct for *all* of them.
2380   I think this kind of list can be given wherever a user can directly
2381   enter such a list.  And i think all that is unique to S-nail(1).
2383 - When writing back edited messages the target MBOX mailbox can no
2384   longer become "corrupted" when the trailing newline was removed during
2385   the edit.  Also affected FreeBSD and NetBSD mail(1).
2387 - A security fix for CVE-2011-2895 was applied.
2389 - The generated Message-Id: is now more human-friendly.
2391 - The -h command line option has been dropped.  Use "-O -h XY" if your
2392   MTA really supports that.
2394 - The -O and -r command line options no longer enforce a one-shot send
2395   mode, and instead persist for the duration of the entire session.
2397 - Variables set via the -S command line option are now (un)set twice;
2398   immediately and after all the resource files have been loaded.
2400 - Other new or changed options/commands, in order of appearance:
2401   recipients-in-cc, smime-sign-include-certs, quote-fold, stealthmua,
2402   add-file-recipients, write, rfc822-no-body-from_, rfc822-show-all,
2403   mail/Mail, idna-disable, idna-strict-checks, ??
2405 - In the codebase itself an effort to reduce duplicate work and
2406   introduce caching, and to minimize the use of local variables, was
2407   started, but that is long term.  A lot of improvements here and there,
2408   too, like using the well MD5 optimization from Wei Dai, Chris Torek's
2409   hash algorithm for hash tables etc.
2411 - Incredibly important: an heraldic animal was found: snailmail.jpg!
2413 The full history can be inspected by issuing the git(1) command
2415   $ git log --reverse s-nail..s-nailv13
2417 A new TODO has been introduced, and it is getting longer and longer.
2418 Thanks.
2420 # s-ts-mode