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:
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}";
21 Thanks to Georg Schlisio (g DOT schlisio AT dukun DOT de),
22 Wiesław Magusiak (wiemag AT poczta DOT onet DOT pl), Tarqi Kazan and
25 Very special thanks: Gavin ".. .. Speeding kills. .." Troy from Ireland
26 and Ypnose "Gloria?? C'est une mouton!" from France.
28 Changelog in reverse order, oldest first.
30 ChangeLog (packager-affine)
31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 - WANT_NOGETOPT is gone. [73f0605]
35 - WANT_NETRC: new option (on by default; see below). [topic/netrc]
40 - Manual slightly improved in respect to LC_ALL etc. settings.
41 The knowledge treshold value is much too high for a normal user;
42 i hope that at some later time we can offer much more (at least
43 optional) automation on the protocol level (e.g., timeout values,
44 protocol features supported by servers etc.), at which time we will be
45 able to make the manual more user friendly. (Georg Schlisio)
46 [56fab16,bd1e11f; ArchLinux Wiki]
48 - The `@' search command has new "header" keyword, which searches in all
49 headers. Shortcuts: "<" = "header", ">" = "body", "=" = "text".
50 ("body" and "text" still perform full text searches _including_ MIME
54 - The -O command line option is legacy and will vanish in v15.0.
55 Arguments to the MTA can henceforth be passed after a `--' separator
56 on the command line, as in
57 echo bla|s-nail -vvd -s sub some@where -- MTA ARGS MADE EASIER
60 - New *sendmail-arguments* option; content will be (converted to list
61 and) joined onto other MTA command line arguments (Wiesław Magusiak)
64 - *colour-pagers* is gone -- instead we have *colour-pager*, which is
65 a boolean and off by default. We again set LESS (and LV) environment
66 variable(s) to automatic turn on colour support in $PAGERs, but only
67 if the variable in question is not yet set. (That is -- in order to
68 get coloured $PAGER you at least have to set *colour-pager* now.)
69 (Tarqi Kazan) [b794f5e]
71 - Terminals no longer need to be added to *colour-terms* if their name
72 (in $TERM) includes the string "color". (Gavin Troy) [ce2c7f6]
74 - Karol Blazewicz opened a discussion in the ArchLinux Forum (s-nail
75 14.7-1 doesn't work [1]) but i didn't realize his actual problem --
76 luckily Gavin Troy wrapped his head around the real problem, and that
77 finally opened my eyes against a whole can of worms in the new URL
78 and credential handling!
80 Then Ypnose also came along and reported an issue with IMAP handling
81 that was related to the compatibility credential handling of the new
82 URL and credential layer.
84 (Gavin Troy, Ypnose, Karol Blazewicz) [a5c40ba]
85 [1] <https://bbs.archlinux.org/viewtopic.php?id=182653>
87 - We now also have -HOST and -USER@HOST *smtp-use-starttls*. [bfb186a]
89 - Gabby history entries will now be saved and restored as such, in case
90 *history-gabby-persists* is set. (For this to work properly
91 a possibly existing history file needs to be reset.) [b5502cc]
93 - We now have optional .netrc support (*v15-compat* set).
94 Set *netrc-lookup* and we'll look in $NETRC / ~/.netrc for user
95 credentials. The `netrc' command will show or clear the entry cache.
96 E.g., this is my new account macro:
98 set v15-compat ssl-method=auto
100 set smtp=smtps://smtp.yandex.ru:466 smtp-auth=plain smtp-hostname= \
102 ghost xp 'fi %:pop3s://pop.yandex.ru'
103 ghost xi 'fi %:imaps://imap.yandex.ru'
105 As an extension to the .netrc syntax we support a single
106 introductional subdomain wildcard, e.g., my relevant ~/.netrc entry:
108 machine *.yandex.ru login NAME password PASS
110 Following a suggestion of Gavin Troy we have multi account support,
111 i'm not quite sure wether this is portable across .netrc using
112 applications, e.g., i could have written the above like
114 machine *.yandex.ru login NAME
115 machine *.yandex.ru password PASS
116 machine *.yandex.ru login NAME2
118 (I hope i don't lie and this really works.)
119 (Suggested by Gavin Troy and Ypnose, testing and feedback Gavin Troy)
122 - Add primitive support for RFC 3798 via the new
123 *disposition-notification-send* variable. This is not yet
124 a truly conforming implementation (it simply injects the necessary
125 header) and it requires the *from* variable to be set.
126 More in the far future, sorry. (Wiesław Magusiak) [ca31d32]
128 ChangeLog (purely technical)
129 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131 - Interrupt protection during (recursive) macro calls with `localopts'
132 on should now no longer be crashable at all. Quote [a4e85c0]
133 It is of course all pretty intermediate until we have a signal
134 manager and we can actually poll signal states at those places where
135 we are capable of and desire to handle them. But it should work
136 today and look nicer than it did.
137 [25caeb9,592499f,a4e85c0]
139 - `ghost' handling performs more strict name checking on ghost names in
140 order not to allow names which would later not be parsed as a whole.
143 - Dropped catopen(3) support (we never really had it)! We will have
144 a new S-nail-specific gettext(3)-alike thing in v14.8.
145 [topic/i-wanna-have-a-dog]
150 Thanks go to Tarqi Kazan (tarqi AT cfs DOT or DOT gs) and Johannes
151 Löthberg (johannes AT kyriasis DOT com), as well as Martin Neitzel.
152 (And the winner is... Gavin Troy for his role in "Silence from Ireland".
158 - Since S-nail now performs more-or-less proper percent-encoding as per
159 RFC 3986 users of *imap-cache* have to (either throw away and recreate
160 or) adjust their local cache, e.g. as follows (adjust CACHEDIR and
161 echo(1) to mv(1) as necessary; won't work with paths with whitespace):
163 $ CACHEDIR=${HOME}/traffic/.mail-cache; \
164 find ${CACHEDIR}/ -depth -type d |
167 r=`echo ${b} | sed -e s/:/%3A/g -e s/@/%40/g`
168 if [ ${b} != ${r} ]; then
170 echo ${d}/${b} ${d}/${r}
177 - New variable *history-gabby* can be set to add much, much entries into
178 the history than is done normally.
179 For the NCL only, setting *history-gabby-persist* will cause those
180 entries to be saved into *NAIL_HISTFILE*, too, which they are not by
181 default with it (the other command line editors should always save).
184 - The `online' alias for `connect' has been obsoleted. [d5cfde4]
186 - New CONFIG=MAXIMAL make option. [c0d4087]
188 - Support compilation on new OpenBSD with their reduced OpenSSL clone.
189 This topic also includes the real solution for getting rid of
190 a strcat(3) warning that i reintroduced with s-nail-14_5_2-smime.patch.
193 - Our -r command line option is now mapped to a `-f' MTA option -- the
194 sendmail(1)-compatible `-r' is long obsoleted! (Johannes Löthberg)
197 - New `elif' command so that we now have if..elif..else..endif.
198 If the optional regular expression support is available the new
199 conditions `=~' and `!~' can be used to perform (case-insensitive)
200 regex matching with `if' and `elif'. [topic/condsplus]
202 - New `~R' tilde escape (like `~r', but indent lines). [fae1f29]
204 - Improved multibyte-safety (e.g. for *prompt*) and a bit of
205 compatibility ("support" would be a wording much too strong) for
206 bidirectional text via the new *headline-bidi* variable.
207 [topic/unibidi, topic/mbbidi]
209 - Diversified behaviour of -v command line option as well as *verbose*
210 to support multiple levels of verbosity; the latter is now ternary
211 when set and boolean when unset.
212 This was the ground on which SSL certificate validition verbosity was
213 implemented (*verbose* level 1: certificates, level 2: network
214 communication et cetera), though much is left to do.
215 This has been suggested long ago by (Martin Neitzel). [topic/smverb]
217 - ^C in compose mode with *ignore* set acts now POSIX compatible
220 - If *encoding* is set to base64 then we don't ignore that user
221 wish and use quoted-printable (when 7bit doesn't suffice) [2ca201f]
223 - New `urldec' and `urlenc' commands. [63e869e, fbd95e8, 0af5b1b]
225 - New `setenv' and `unsetenv' commands. [5e2ed79]
227 - Support for GSS-API authentification has been added (request and
228 testing by Tarqi Kazan).
230 Note that the following implicit relation is gone:
232 If set to `login', or if unset and smtp-auth-user is set, `AUTH
235 This topic branch also added support for the SUBMISSION protocol of
236 RFC 6409, so re-reading the *smtp* manual may bring benefits.
239 - A new, backward-incompatible URL syntax and credential lookup scheme
240 has been introduced that is accessible when the new *v15-compat*
241 variable is set. If used, credential lookup occurs before a network
244 The new manual section "URL syntax" describes the new credential
245 variable chains, and documentation of *from* should be read again, as
246 i now also refers to the new *smtp-hostname* variable.
248 Note that the generated `Message-Id' has also changed.
250 (Messy old way pointed out by Tarqi Kazan)
251 [topic/url, topic/cred]
253 - `resend' should be truly fixed and (fwiw) can also resend to pipe and
254 file addressees. [topic/resend]
256 - Support for empty lines in macro and account definition blocks (as
257 required by POSIX for startup files in general) [43cdf92]
259 - The nail command line editor gained the possibility to use PgUp /
260 PgDown / Home / End instead of z[-+0$] commands on xterm-compatible
261 terminals; and ^O equals a `dp' there, too. [8c57be2, 7c30e61, 95e672f]
266 Many thanks to Gaetan Bisson.
271 - Avoid segmentation faults with -L option if s-nail is opened on
272 non-existent mailboxes, e.g. '$ MAIL= s-nail -Lx'. (Gaetan Bisson)
278 Thanks and greetings to Gavin Troy, Gaetan Bisson and Tarqi Kazan (tarqi
279 AT cfs DOT dyndns DOT biz).
281 ChangeLog (packager-affine)
282 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
284 - WANT_AUTOCC knows that clang(1) version 1 can dig -Wstrict-overflow=5.
287 - '$ make test' should work even if you are not steffen.
288 (Gaetan Bisson, Gaetan Bisson, Gaetan Bisson, Gaetan Bisson,
289 Gavin Troy, Gavin Troy) [8b796ba]
294 - *autoinc* is gone -- this is *newmail*. [07a8462]
296 - Working with large(r) IMAP boxes should work again without causing
297 segmentation violations. (Gavin Troy) [761dd87, b0ce180]
299 - With our builtin getopt a.k.a. WANT_NOGETOPT=1 usage of the -L option
300 caused segmentation violations. (Tarqi Kazan, Gaetan Bisson) [f2c2646]
302 - The decision wether we need $PAGER or not now also incorporates the
303 informational lines we inject for messages. [316b4cd]
305 - Drop `defines', add `unaccount', rename `undefine'..
306 The `defines' command has been united with `define' -- just like
307 `account' will list all defined accounts when used without arguments
308 `define' will now do so for macros. And `undefine' is the new name of
309 `undef'. The new command `unaccount' can be used to delete all given
310 accounts, in equal spirit to `undefine' and macros.
311 All of this is still vulnerable against recursivity, e.g., deleting
312 an executing macro still works, but don't that. [b0b3275]
314 - Rename `var-inspect' to `varshow'; silly oversight that `var-inspect'
315 will try to lookup a variable "-inspect". Ouch. [afffd30]
317 - Without HAVE_ICONV the character set iterator sofar used
318 *charset-8bit* as the last resort, whereas it should have used
320 P.S.: All this still preliminary, we await the MIME and send layer
321 rewrite to calm down the stuff for real. [edc3226, df9aefd]
323 - During `~@' editing it is possible to leave the possibly endless
324 character set selection loop by interrupting via ^C.
325 In the meanwhile this effectively drops the currently edited
326 attachment and leaves the entire attachment selection session; it
327 doesn't make sense to make it any better until we have our signal
328 manager and stop jumping around.
330 This changeset should also fix dangling Content-Xy MIME information of
331 attachments which were in the same slot before, e.g., if #1 was
332 a message attachment and that was changed on-the-fly to be a real file
333 attachment then the Content-Description would still have stated that
334 it is a message attachment.
337 ChangeLog (purely technical)
338 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
340 - Since it has been decided to remain compatible to ISO C89 we cannot
341 use the ISO C99 `z' format string modifier (printf(3)).
342 Since quite some time we make efforts to provide our own `ZFMT' macro
343 (in `nail.h') which provides somethint compatible, but on 32-bit
344 platforms compilers often complain nonetheless.
345 Therefore we now also have a compile-time assertion that proves that
346 our `ZFMT' macro is really correct. [397e4d1]
351 Many thanks to the perpetual Gavin Troy.
353 - Faulty notational change of system call return values from `<0' to
354 `==-1' caused endless waitpid(2) loop. [d6f316a; test(!): 79fd761]
357 - (GLibC) STD I/O overoptimizes rewind(3) so that underlaying file
358 descriptor offset is not reset to 0. Generalize the already
359 used `really_rewind()' hack and use it not only in
360 `savedeadletter()' but also in `page_or_print()'. It is likely
361 that this not also fixes `history' listing but also some other
362 things which go through the pager, dependend on the setting of
363 *crt* etc., and on at least GNU/Linux systems. [463660f]
365 Note: standard I/O does NOT offer a possibility to do this in
366 a non-hackish way. It is thus likely that S-nail will gain
367 a completely new I/O layer in the future. That'll also be faster.
370 This note is false: POSIX Issue 7 overloaded the meaning of
371 fflush(3): when used on readable streams the file offset of the
372 underlaying file descriptor is adjusted to that of the stream.
373 (nail.h: adjust really_rewind(): POSIX Issue 7 defined a way..)
374 uses this official approach instead if _POSIX_VERSION>=200809L.
376 - Old shells will now correctly execute an error-condition
377 execution path in `mk-conf.sh'. [afef55f]
382 Thanks to Andy Switala (andy DOT switala AT gmail DOT com).
383 And thanks to all package maintainers for their stamina.
385 At the first workday after the release i've run into a bug that was
386 caused by an oversight, a double-Fclose() that would be harmless if we
387 wouldn't forcefully panic() when we encounter it!
389 So i've spent another week on a review, and despite fixing many
390 additional notational oversights i haven't found more oversights of
391 newly introduced problems. On the other hand i've found and fixed some
392 old problems during the review, and tweaked some other things:
394 - The INSTALL file now has a `Current codebase state' section.
396 - Commands invoked via `!' should now be interruptable.
397 I'm afraid the exit status of such a command will not be reflected by
398 the return value of the `!' command yet, but hey, at least `!sleep 10'
399 can now be interrupted -- try this with another Berkeley Mail!
402 - All credential prompts should now be interruptable.
403 (Inspired from Andy Switala) [c3bb2a2]
405 - 'make test' will now test a silly S/MIME case when WANT_DEBUG (or
406 'make devel') was used. [8cff17f]
408 - *batch-exit-on-error* should now look at the exit status of *every*
409 command when the command loop ticks. [c7e7d53]
411 - The new `[?name-list]?search-pattern' search expression has been
412 changed to `[@name-list]@search-pattern' -- like this it doesn't clash
413 with the `?' help command and can thus be used on a line by itself,
414 causing the default command (`next') to be invoked on its' result,
415 shall there be one. Ok, yes, that was surely also an oversight.
418 - *attrlist* must now be exactly 13 characters, just as it should
419 be. An error message is printed if not. It was always komisch,
420 but i'd buggified it somewhen in the past. Now fixed.
423 - The NCL WANT_TABEXPAND feature now also works if *newfolders* is
424 set to `maildir'. Yet, if a folder was assumed to be of maildir
425 type, shell globbing would not occur. [part of f5c184c]
427 - The `X-Decoding-Data' S/MIME header field was set to the epoch
428 origin instead of NOW in v14.6.
430 Also the `certsave' command now supports file globbing (i.e.,
431 '~/.certs/' should end up in your $HOME now).
432 [both part of 7e0aec7]
437 + With this release the S-nail codebase has been converted to my usual
438 style of function-code-flow and notation.
440 ?0[]$ git diff --shortstat v14.5.2..HEAD
441 55 files changed, 28065 insertions(+), 25356 deletions(-)
442 ?0[]$ git diff --ignore-all-space --shortstat v14.5.2..HEAD
443 55 files changed, 14664 insertions(+), 11955 deletions(-)
445 Maildir and S/MIME support have been restored, and a MIME bug that
446 could have led to missing data in header display+ has been fixed.
447 Ah, and users of compressed boxes should now feel luckier, too --
448 at least once they've realized that the compress extension is no
449 longer appended automatically, but must be given explicitly.
451 Thus: i hope that all those i-am-new-to-the-codebase bugs i've
452 introduced over a year ago have been found and fixed, and that
453 v14.6 is the true "sweet sixteen" (months of maintainership).
455 ChangeLog (packager-affine)
456 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
458 - If WANT_AMALGAMATION is set, `-pipe' will be added to our CFLAGS
459 (which are only honoured with WANT_AUTOCC, of course). [1330411]
461 - New configuration option: WANT_IMAP_SEARCH, enabled by default.
463 The regular expression support for IMAP-style search expressions has
464 been removed again: it changed the IMAP search semantic in that it
465 couldn't be executed on the server, but only local, and the syntax
466 sucked, too. (And we have a new `?' search expression.) [402b7c6]
468 - CONFIG=MEDIUM and CONFIG=NETSEND now both WANT_REGEX. [dee954e]
470 - The `make test' target should *really* work gracefully, now that usage
471 of the `-#' command line option also sets the folder to be opened to
472 `/dev/null'. (Still no `void' box in sight.) [0119d514]
474 - All published patches may also be found in a new [patches] branch.
479 - Several fixes that saw published patches (with equivalent
480 functionality), and are thus described in NEWS, are included:
482 . s-nail-14.5.2-sort-alt.patch
483 Fixes a hasty commit that introduced string relaxation in a faulty
486 . s-nail-14_5_2-mimeheader.patch
487 Fixes data loss if multiple MIME encoded-words follow each other in
488 header bodies. [c81afce]
490 . s-nail-14_5_2-maildir.patch
491 Effectively restores proper maildir support. [1c2563b, 13f325f]
493 . s-nail-14_5_2-smime.patch
494 Fixes an off-by-one error and, in effect, restores S/MIME sign and
495 encryption etc. support. [e759f75]
497 - The `screen' terminal type is by default recognized as being
498 colour-capable. [e759f75]
500 - With the NCL command line editor and WANT_TABEXPAND hitting <TAB>
501 should now act as if an "implicit asterisk" had been given in case
502 there was no expansion of the original user input; e.g., '? ls <TAB>'
503 may exceed your line limit now ;). [0910a8f]
505 - The S/MIME cipher list was outdated, RFC 5751 requires AES-128 as
506 the default, the RC2 ones are long obsoleted (etc.). Also we now
507 should handle that OpenSSL may not support individual algorithms.
509 Note: we use the option value `des3' for `DES EDE3' from now on!
510 (Maybe see *smime-cipher-user@host* manual entry.)
512 *ssl-method* may now also be assigned the new (default) method `auto'
516 - Messages will now be stored in a set *record* even if only file or
517 pipe addressees were given. [a11935b]
519 - Support for xz(1) compressed mailboxes has been added.
520 (The `Can't canonicalize' warning for compressed boxes had the same
521 cause that made maildir usage impossible, but i don't feel _too_ bad
522 because looking into the code a bit revealed that the *newmail*
523 mechanism never worked for such boxes anyway. And will for a while.)
526 - S-nail now supports nested if..else..endif conditionals. [3c22c04]
528 - The NCL command line editor now locks its' history file when it reads
529 and writes it, so as to protect against concurrent usage. [c3a39ce]
531 - You can now say 'fi%', 'fi&', 'p&10' and `ghost ps '!ps axu'' followed
532 by 'ps|grep nail'. [c3266c6]
534 - Invocation cleanup: usage of -f and -u is mutual, -H and -u is ok, -u
535 in send mode not. [fa0a0aa]
537 - New message specification: `[?name-list]?search-string' will search
538 in locally available messages. If the optional `?name-list' part is
539 given, that specifies the (comma-separated list of) header fields to
540 search in. The special names `body' and `text' can be used to search
541 in message bodies alone and bodies including the headers fields,
542 respectively. Note that "message bodies" unfortunately still means
543 "including headers of attachments and attachments themselves", and
544 until some later time. [61bb460]
546 - The new command line option `-L spec-list' prints a header summary of
547 only those messages that comply to the specification list `spec-list'.
548 If -L and -H are used in combination, no summary is printed at all,
549 but the exit status reports wether `spec-list' would have matched some
550 messages or not. [934e12c]
552 ChangeLog (purely technical)
553 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
555 - Most of the work was changing the code-flow of the entire codebase to
556 my usual style of programming, with a single function entry and
557 a single function exit, including the addition of N(ot) Y(et) D(ead)
558 points of interest, which finally enabled me to get rid of (sic!)
559 using a debugger for S-nail development. Just compile via 'make
560 devel', and in case of a crash you should get a nice backtrace
561 listing. (You use IMAP, do you?)
563 However, because practically every line of code has been touched, this
564 caused some other changes along the way, e.g., the handling of
565 temporary files was changed completely (the formerly used Ftemp()
566 function has been replaced with a new Ftmp(), which handles unlinking
567 itself as necessary etc.), it was detected that the S/MIME support was
568 no longer compliant to any RFC, some resource leaks have been
569 eliminated... It is likely that a change so large introduced some
570 other flees and flaws, however. But it looks good so far.
576 + No official release, only exists as git(1) tag.
578 v14.5.2: fix 4: 2014-02-15 (2014-02-14)
579 ---------------------------------------
581 - s-nail-14_5_2-smime.patch
582 Fix a very stupid off-by-one error that i've introduced
583 in [7bdf330] (OpenBSD 5.3: sigh, address strcpy(),strcat()
585 Until we've changed the used data from string to something
586 line-wise, use strcat(3) again.
588 v14.5.2: fix 3: 2014-02-10
589 --------------------------
591 - s-nail-14_5_2-maildir.patch
592 maildir folders would have caused problems in environments which
593 provide the realpath(3) function: beside a "cannot canonicalize PATH"
594 warning the finally used path would be wrong (`test3' would end up as
595 `test3/test3'), so that any further access would try to use the wrong
596 path. Please read the description of this patch and/or the commit
597 logs of the commits [1c2563b] and [13f325f].
599 v14.5.2: fix 2: 2014-02-05
600 --------------------------
602 - s-nail-14_5_2-mimeheader.patch
605 Subject: ehm, .getElementById("blink") needs <span
606 =?US-ASCII?Q?id=3D"blink">,?= not =?US-ASCII?Q?class=3D"id"?=
608 would yet be displayed without the " not " in between the two encoded
609 words because of faulty "encoded-word-continuation" detection (note
610 the quotation marks). The error path could also have been seen in
611 mail forwarding and in faulty searching etc.
612 This patch is in a row of fixes for my hasty [0f9ad93] from 2013-03-12
613 that already caused the v14.2 minor release (because of [b608c6b] from
614 2013-03-14). Those with mercy may read the commit message of [c81afce].
616 v14.5.2: fix 1: 2014-01-30
617 --------------------------
619 - s-nail-14_5_2-sort.patch
620 Reverses (sort(),thread(): use srelax()!, 2014-01-18, [a9b67e9]),
621 which was a hasty commit of an untested diff that i've added few
624 As a rather careless last-minute change i've added string relaxation
625 to threaded and sorted display, but it's really one more step towards
626 lowering memory pressure -- i couldn't resist [a9b67e9] after seeing
628 An alternative, forward-heading patch that keeps string relaxation has
629 been pushed to [master] as [5e75529] and is also available as
630 s-nail-14_5_2-sort-alt.patch.
635 Thanks to Ypnose, Sunil Nimmagadda and Gavin Troy.
636 Gavin Troy *really* deserves special thanks for facing [next]!
637 And i want to dedicate the new coloured message display functionality
638 to John Dodson and Ypnose. Thank you.
639 (And best wishes to beautiful Australia!)
641 ChangeLog (packager-affine)
642 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
644 - All utilities can now be overwritten during configuration so that
645 their values are fixated in the generated makefile (`mk.mk').
646 I.e., talking about MAKE=, STRIP=, awk=, cat=, chmod=, cp=, cmp=,
647 grep=, mkdir=, mv=, tee=.
648 rm= and sed= have to be overwritten from the command line, they're
649 needed before `conf.rc' is read.
650 [5c03347, 072ec65, 39a00ab, 23a1245, ?]
653 - The release tarball is now also available in a xz(1) version.
655 - New configuration option: WANT_COLOUR, by default enabled.
657 - 'make test' should now really work, even if the running user has
658 a mailbox with content. [f223a91]
660 - WANT_AUTOCC is now by default enabled, so as for normal users which
661 don't have the need to embed into a defined packaging environment.
664 - Installation no longer strip(1)s away debug symbols if WANT_DEBUG was
671 - Fixes to some bugs that are present since the first cvs(1) commit of
672 Heirloom mailx(1); includes that *ssl-key-user@host* should now work.
673 [4405a2cc, 9770c26f, 692976b9]
675 - Some off-by-XY fixes, thanks to the debug memory canaries.
676 [19b2b0d, 202506e, 43df6e4]
678 - Fixes for (other) stupidisms (of mine): [1c2161f]
680 This includes true implementation of in-memory history limit for the
681 NCL, which was the final and real solution to a segmentation fault
682 that Gavin Troy had to deal with on [next]. [1089f2b]
685 - For completeness: new command `var-inspect' shows information about
686 all given options. Mostly ment for implementing future tests.
689 - The `pipe' command no longer embeds message information into the
690 data passed through to the command (when *piperaw* is set).
691 [ef5ecc6 (part of topic/colour)]
693 - Simple coloured message (header) display is now possible. Please
694 read the new manual section "Coloured message display", use
695 *colour-disable* to turn it off. (It is enabled by default if it
696 knows the terminal is capable and, if used, the pager can, too. Note
697 we now set LESS=FRXi when starting PAGER and no LESS= is in the
700 Dedicated to John Dodson and Ypnose.
701 [topic/colour, c6e84c7]
703 - The `if', `else', `endif' syntax has been extended.
704 You can now "if 0" (never), "if 1" (always), "if $OPTION" (boolean
705 check for OPTION) and "if $OPTION == 'VALUE'" as well as "if $OPTION
706 != 'VALUE'". Unfortunately it is still not possible to use
707 conditionals inside conditionals. [0fb2ae7]
709 - -# now also sets MBOX=/dev/null. [4be2f1e]
711 - The NCL command line editor now supports cursor keys when the terminal
712 produces xterm(1)-compatible keycodes ('ESC' + '[' + [DACB] for left,
713 up, right and down, respectively). What a thrill, yay!!! [0cbf672]
715 - New (optional) command: `history': show or clear command line history,
716 or select a specific command line from in there.
717 History works a bit different now, and should no longer include
718 command lines which include specific message numbers; more to come.
719 [59c6195, topic/hist2]
721 I plan to join all the history management and use only the one that is
722 part of NCL now, hooking it into editline(3) and readline(3). That
723 would shrink tty.c a bit and also introduce duplicate elimination for
726 - The new ~u and ~U tilde escapes work like ~f and ~m, respectively, but
727 don't include any header lines. Inspired by a patch from
728 Sunil Nimmagadda on openbsd-tech@. [c37b8b3]
730 - The `|' command should work again -- it has stopped working on
731 2013-09-09 when i've accidentally changed the command name from `|' to
735 - As a rather careless last-minute change i've added string relaxation
736 to threaded and sorted display, but it's really one more step towards
737 lowering memory pressure -- i couldn't resist [a9b67e9] after seeing
738 ?0[ /Users/steffen/src/nail.git/t.mbox]? sst
739 Buffer allocs ever/max simultan. : 14/14
740 Overall alloc count/bytes : 17165/881088
741 Cycle maximums: alloc count/bytes: 16906/876984+0
742 ?0[ /Users/steffen/src/nail.git/t.mbox]? sst
743 Buffer allocs ever/max simultan. : 0/0
744 Overall alloc count/bytes : 16515/841816
745 Cycle maximums: alloc count/bytes: 16256/837712+829560
747 ChangeLog (purely technical)
748 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
750 - We now have debug canaries for all memory sources now that [8419d44]
751 added them to the "string dope".
753 - The most work has been done on our value system, which manages the
754 binary and value options, like *folder* etc.
755 It is now based on enumerations, i.e., constant integers, not on
756 strings. This of course only relates to non-dynamic options.
757 Anyway, this saves us key hashing and allows more compact data
758 representation in general (see the new header `okeys.h' for more).
764 ChangeLog (packager-affine)
765 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
767 - The build system *only* uses the automatically detected $CFLAGS and
768 $LDFLAGS if WANT_AUTOCC=1. I.e., even unset or empty $CFLAGS and
769 $LDFLAGS are not touched until then.
770 (We do however still set $CC if that is unset or empty or set to the
771 plain string "cc".) [856625f6]
776 - Fixed segmentation faults / bus errors when setting *nofolder*
777 / *line-editor-cursor-right* to the null string (only with WANT_NCL),
778 respectively. [d1f1a19b, 21e5c285, 9f6ff25d]
780 - *prompt* handling is now really POSIX compliant (thus no prompting
781 occurs not only for 'set noprompt', but also for setting *prompt* to
784 This was indeed a rather large changeset that also introduced the new
785 *prompt* escape character \&, which expands to `?' by default and to
786 `&' if *bsdcompat* is set.
788 Like that we now can simply assign "\& " to *prompt* at program
789 startup, which (a) allows to do 'set noprompt' without error (once)
790 and (b) allows for POSIX compliance in respect to prompt handling
791 without any complicated conditional code, but (c) gives us the
792 opportunity to continue to support BSD prompts.
795 - For completeness: new command: `features'. (Rather useful for being
796 able to implement more tests in the future, and act according to what
797 is really compiled into the tested binary.
799 - The `-#' command line option now also sets *quiet* by itself.
802 - nail.1: a newly introduced empty line in the manual produced error
803 messages on some systems. Fixed.
805 - The return value of the `mimetypes' command has been reversed and
806 should now be fixed. [acf56ac52]
808 - In threaded display the Subject: followup suppression no longer
809 takes into account invisible messages.
810 Also, rudely hack in a messages-already-written-in-this-round counter,
811 so that the followup suppression knows when "the top of the screen" is
812 reached, which (seems to) help(s) against missing subjects up there as
813 well as after a `newmail'. [topic/subject]
815 - Added a WANT_REGEX=1 toggle in `conf.rc'.
816 When we find regular expressions then a new regex-enabled IMAP-style
817 search is available (see the manual for more) [1ec8fe68]
819 ? f (/or subject ^\[S-nail (subject ^\[nail-devel))
820 ? f (/subject ^\[S-nail) (/subject ^\[nail-devel)
821 ? f (/subject "^\\[(S-nail|nail-devel)")
823 I'm looking forward for being able to add another, simplified, syntax.
825 ChangeLog (purely technical)
826 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
828 - The cc-test.sh has seen some tweaks, for easier future extension, and
829 for adding a test for [d1f1a19]. [several, mentioned: 21e5c285]
831 - On systems without a real wordexp(3) implementations deadlocks could
832 occur because we sometimes hold_all_sigs() to avoid longjmp(3)s away
833 (and will do so for quite some time, still), and that resulted in the
834 SIGCHLD that reported the exit of the started subshell to be blocked,
835 too (e.g., after '? *.h<Tab>': endless hang). Fixed.
840 Many thanks: Gaetan Bisson, William Yodlowsky, Gavin Troy,
841 Thomas (wasd AT gmx DOT net), Ypnose.
842 And Gavin Troy definetely deserves a very special credit.
843 But thank you all, and very much indeed!
845 ChangeLog (packager-affine)
846 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
848 - The `test' make target has been fixed. [f0991e14]
851 - It is possible to gain a different kind of make(1) verbosity by
852 using a VERBOSE=1 command line argument (this knob is not taken into
853 account when deciding wether a rebuild is needed). [498e4ad0]
856 - On Crux 3 Linux and OpenBSD the readline(3) and editline(3),
857 respectively, libraries will now be found when desired. [a7d1aa78]
860 - WANT_LINE_EDITOR has been renamed to WANT_NCL, *plus*.
861 So now there are WANT_READLINE, WANT_EDITLINE and WANT_NLC, each of
862 them can be set individually, and they are tested in the shown order.
863 Also, WANT_TABEXPAND and WANT_HISTORY have been introduced and can be
864 used to fine-tune functionality. [ae4e01e1, b2635feb, 9742bf40]
866 (While here, i've fixed WANT_TABEXPAND code so that it is more
867 sensitive to line excess; on Linux etc., where MAX_INPUT is 255,
868 strange behaviour could be seen because we didn't take into account
869 the length of the prompt at all. The NCL is assumed to have only
870 one remaining, but unfixable problem: backspace often is incapable
871 to cross visual line boundaries; use ^A/^E + ^L, then. [e832c04a]
873 Also, cursor (now ^B and ^F) and history movement (now ^P and ^N) of
874 the NCL have been changed. [d7d928da])
876 - WANT_QUOTE_FOLD is now enabled by default. And WANT_ASSERTS has been
877 renamed to WANT_DEBUG. [1e10da1f]
879 - The build system has seen yet another overhaul in general. CC, CFLAGS
880 and LDFLAGS plus are now tracked and changes will force rebuilds.
881 The new WANT_AUTOCC option can be used to let the build system figure
882 out a compiler and choose known-to-work flags. Use the new ADDCFLAGS=
883 and ADDLDFLAGS= command line arguments to add your specific flags on
884 top of those -- the final CFLAGS etc. are what is change-tracked.
886 This rather massive internal rework revealed that old Bourne shells
887 were yet not supported by the new build system, and so did testing
888 that UnixWare installation was yet impossible due to tool
889 incompatibility. [75c4b74e]
891 - The new WANT_AMALGAMATION option will force compilation of all the
892 sources in a single compilation unit. This requires a rather large
893 amount of memory, but may produce a more compact, maybe more optimized
894 binary. (Implementing this revealed quite some bugs which could
895 therefore be fixed.) [topic/amalgam]
897 - `nail.rc' has been pimped a bit (mostly comments, but
898 *mime-counter-evidence* is now always set). [e3094ba7]
900 That changeset was however buggy. [f3dcb46]
903 - We no longer use install(1) for `install'ation make rules. [80b02cd9]
908 - Even '$ s-nail & fg $!' will now work with the NCL. [2a8b5c55]
910 - Several off-by-one (off-by-two) fixes. [32ce9836, 71e6d013, f139dc36]
913 - Setting *noprompt* now prevents prompting, as per POSIX. [ecefaf63]
915 - *prompt*: new \$ (exit status of last command) and \@ (name of
916 currently active mailbox) escape sequences. [6f652046]
918 - One may now omit the space in '? unc' ('?unc') [05fcb383]
920 - New commands: `ghost' and `unghost' define command aliases (since
921 `alias' is taken for a different purpose) [topic/commands]
926 - There is now a pseudo account `null' (case-insensitive).
927 Also a new `localopts' command exists; when used from within an
928 `account' block, options changed will be reverted back to its former
929 value when the account is left (e.g. by switching to `null'):
932 alternates sdaoden@users.sf.net sdaoden@users.sourceforge.net \
933 sdaoden@googlemail.com sdaoden@gmail.com
934 set Sign="\n--steffen\nForza Figa!" sign="\n--steffen"
935 set smtp=smtp.gmail.com smtp-auth=plain smtp-use-starttls
941 set from="Steffen \"Daode\" Nurpmeso <sdaoden@gmail.com>"
946 set from="Steffen \"Daode\" Nurpmeso <sdaoden@users.sf.net>"
954 neither of *Sign*, *sign*, *smtp** nor *from* should be set.
955 Please see the manual for more.
956 TODO - neither command-ghosts nor alternates etc. are yet tracked
957 TODO - we should have a boolify() so as to say 'localopts yes' etc.
960 - New command: `cwd' (print current working directory).
961 Also fixing the `chdir' return value. [eff4397c]
963 - The *ssl-method* now allows explicit setting of 'tls.1.1' and
964 'tls1.2' values. [c66b4196]
966 - When sending to display, be aware that filenames in MIME parts may of
967 course be MIME-encoded! [1454be03]
969 - *hostname* is now honoured even if *smtp* is not set. (We always
970 supported *from*, so why not *hostname*?)
972 - The `-u user' option now acts identically to setting the $USER
973 environment variable and both now tend to mean something like
974 "impersonate as user in some aspects". Note that we have always used
975 the latter in one or the other way, and `-u user' always ment more
976 than just "open mailbox of user", so i think this change sharpens the
977 edge in the right direction. [09632731]
979 - Filename argument quoting has been tweaked for (some) function(s which
980 take a filename argument last). The following snippet as reported by
981 Gavin Troy should work now: [2bb9b80e]
983 ? mv +inbox.Junk\ Mail
985 - The GNU implementation of wordexp(3) is also (i've added a workaround
986 for the very same bug for Mac OS X in S-nail v14.3 [63273772]) buggy,
987 which causes segmentation faults when expansions failed (`fi &VOID').
991 - The `fi' command no longer uses the (possibly truncated) display
992 version of a filename, but the full path. [5cd85b07]
994 ChangeLog (purely technical)
995 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
997 - Large rework of internal structure: bundle inclusion of most of the
998 external and the content of most of the internal #include files in the
999 new nail.h. If that would have been done very first bugs like the
1000 infamous MAXPATHLEN bug as reported by Paul Vojta (see v14.4.2) would
1001 never have occurred. [21f3155b]
1003 - Support for -fstrict-overflow cc(1) flags. [topic/strict-overflow]
1005 - Fixed the quotation filter which yet allocated memory even if not
1008 - String relaxation reduces memory pressure rather drastically when
1009 working with many (especially MIME) mails at a time, e.g., when
1010 writing a modified mailbox. Before all messages of a mailbox had to
1011 be worked without releasing any memory in between, now we give back
1012 memory (to our pool, not the system) after each and every message.
1015 - The other memory source now uses bound canaries, which also found some
1018 - We now use the EL_PROMPT_ESC editline(3) mode for prompting, which
1019 should offer the possibility to use coloured prompts etc. with
1020 (even those) editline(3) (versions which do offer it -- older versions
1021 should just do fine by themselves).
1022 S-nail uses the special trigger control character \1. [ea30d818]
1025 Note however that all tested editline(3) versions are buggy and
1026 either don't get it right (`\1COLOR-ON\1stuff\1COLOR-OFF\1') or are
1027 incapable of proper repainting (`\1COLOR-ONstuffCOLOR-OFF\1').
1029 - We now use the MD5 digest code from the OpenSSL library if that is
1035 Many thanks: Gaetan Bisson, Stephen Isard, Jérémie Courrèges-Anglas,
1036 William Yodlowsky, and Adam Sjøgren from GMANE.org!
1038 ChangeLog (packager-affine)
1039 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1041 - The packager-install: target has been fixed. [a8c1b0b]
1042 (Gaetan Bisson and William Yodlowsky)
1044 - As suggested by Gaetan Bisson the several build system tasks are now
1045 individually addressable, i.e., 'make [OPTIONS] config', 'make build',
1046 'make test', 'make packager-install'); nothing changes unless you want
1047 to, in which case: please see INSTALL. [4d3b799]
1049 The new target 'test' will call cc-test.sh with its new --check-only
1050 option which will only perform the (too few) function tests on the
1052 And cc-test.sh will no longer create output files, but simply echoes
1053 to STDOUT and STDERR. [629e1ee, 786f219]
1056 - The default configuration file now sets *bsdannounce* and *bsdflags*,
1057 all in one line, as suggested by William Yodlowsky.
1058 (If *header* is disabled, *bsdannounce* is ignored, but *header* must
1059 be enabled by default according to POSIX, and *bsdannounce* is just
1060 the same as *header*, but for the folder-switched event. Thus setting
1061 *bsdannounce* is the more sane default, imho.) [6161f10]
1064 - Announcement messages are now tagged '[ANNOUNCE]'. [26e1b35]
1065 (Tagging suggested by Stephen Isard and Jérémie Courrèges-Anglas)
1067 - The manual NAME now includes the version (but it's somewhat ugly).
1073 - When switching folders when in compose mode, message attachments
1074 become invalid. For v14.4.5, at least warn when this happens.
1077 - When reading multipart/alternative messages which do not contain
1078 a text/plain part, the (most likely HTML) part is not displayed (even
1079 if S-nail is configured to display HTML). The reason is a bug i've
1080 introduced with [0d43a999] (Change "Part X:" display message..,
1081 2012-12-20). (Note that the committed fix i've posted to the list was
1082 not correct either and has been fixed itself.) [225c02b, ecfa149]
1087 Thanked, Gavin Troy, Gaetan Bisson.
1089 - Fix output buffer confusion that would have occurred when parts of
1090 a multipart mail had a pipe command set. Longer story in [e75d16dd].
1093 - The makefile now supports a `packager-install' target that bypasses
1094 the reevaluation of the configuration (after checking that there is
1095 one) and directly steps ahead to the install process.
1098 - Notes in INSTALL that CFLAGS and LDFLAGS need to be overwritten from
1099 within (conf.rc or) the command line.
1105 I convey special thanks to Karol Błażewicz and Gaetan Bisson.
1107 - The new build system didn't allow to overwrite CFLAGS= when used in
1108 conjunction with GNU make(1). To make a long story short, removing
1109 a `.POSIX:' directive from the makefile fixed the problem. Luckily.
1112 - More INSTALL notes for UnixWare 7.1.4, which suffers from the same
1113 problem: here the fix is to use the -e option of make(1).
1115 - Karol Błażewicz reported a segmentation violation he got when using an
1116 Arch Linux S-nail test package, and Gaetan Bisson informed me about
1117 that. The problem was that we didn't assign the resulting default
1118 address (which gets used when *from* is not set) to the result which
1119 gets used, effectively resulting in a NULL dereference. [cfd60479]
1124 Many thanks to Paul Vojta.
1126 - On GNU/Linux there is no MAXPATHLEN constant defined by default, as
1127 this is a non-standard legacy constant. Mozilla ran into this some
1128 time ago, though a bit different [1]. It made it easier for S-nail.
1130 [1] <https://bugzilla.mozilla.org/show_bug.cgi?id=412610>
1132 We could include `sys/limits.h' to get at MAXPATHLEN, there it is
1133 defined to be PATH_MAX, but let's just include the standard `limits.h'
1134 and ensure MAXPATHLEN ends up >= PATH_MAX. With this condition being
1135 true even FORTIFYd sources won't bail with reported buffer overflows
1136 because realpath(3) expects a buffer of PATH_MAX bytes. [bee5e57c]
1139 - With the builtin LINE_EDITOR, ensure proper interaction with GNU
1140 rlogind(8), which is alone in its quest to set the ISTRIP termios(4)
1143 - Bugfix a codepath that would have prevented compilation when
1144 HAVE_ICONV is not set.
1145 While there, allow to unselect message attachments when using the `~@'
1146 tilde command interactively, which i mysteriously had forgotten when
1147 allowing selection of 'em. (oops?) [4f58ffea]
1149 - It's now easier for packagers to get at debug-enabled CFLAGS; simply
1150 use WANT_ASSERTS=1 (should not be enabled in shipouts, please).
1153 - Fixed a terrible bug that i've introduced in november 2012, that would
1154 have corrupted MBOX files when using the `resend' command. (The
1155 so-called "From_ line" would have been quoted to ">From_ line" instead
1156 of simply being stripped.) [19d449e2]
1158 - Fixed a SIGSEGV for the builtin LINE_EDITOR, that would have occurred
1159 if a history traversal (^B or ^F) would have been continued by
1160 a reverse history completion (^R).
1161 While there, avoid some multiple-beeps-in-a-row that yet occurred due
1162 to code reuse, and document that ^G etc. reset the multibyte state
1165 Also, the expand-on-tab code could have excessed line input maximums,
1166 e.g., after `? /usr/bin/*<Tab>'. This was of course known, but
1167 i wanted to keep it because all tested (modern) terminals "mess up but
1168 won't break", and thus made it possible to use the data, even if it's
1169 visual representation was messed up. The real solution will be much,
1170 *much* more complicated, i.e., show possible *completions*, page-wise,
1171 etc., i.e., just like is known by tab *completion*. This will need
1172 far more time because it doesn't make sense to embed such complicated
1173 code into the current bed.
1174 Now i've chosen to simply don't display excess, but replace the
1175 content with a message that says that there was excess. It simply
1176 looks better. [0320c8ba]
1178 - I've changed the use of `[?]' as a replacement sequence for invalid
1179 / non-displayable characters to `?' (again). There are still code
1180 paths (from the original codebase) which use the real Unicode
1181 replacement character instead, so our display is still not unique.
1182 On the long term the codepath can anticipate in all levels wether
1183 use of Unicode is possible, so that, then, we will be unique again,
1184 using either only `?' or the Unicode replacement character. [faf6380]
1186 - I've anticipated in v15.0 and implemented *quote-fold* as a stream
1187 filter. It is now multibyte safe and takes into account the visual
1188 width of characters, i.e., ideographs etc. It is working almost as
1189 good as an algorithm can work that looks at data linewise, but is yet
1190 experimental and incomplete in that it will break lines even if only
1191 whitespace or a backslash escape follows. It is code that is only
1192 a few hours old, which is why it is not enabled by default. [
1199 - Fix some harmless stylos and typos in the manual and `conf.rc'.
1202 - Ensure *complete* proper cleanup on signal-caused configuration run
1205 - Bugfix: reenable empty configuration variable overrides, as in
1207 $ make install SID= NAIL=mailx ...
1210 - Bugfix: rename the `conf.rc' variables SHELL, LISTER and PAGER because
1211 they clash with the POSIX standard variables of the same names, which
1212 hurts now that the configuration is run through the shell itself.
1213 The configuration names are now XSHELL, XLISTER and XPAGER (ouch).
1216 - nail.rc: comment out some non-portable S-nail(1) specifics, for those
1217 who install this file as mailx.rc or so, somewhere. [3f14b01]
1219 - From now on S-nail will use simple version tags, as, e.g., `14.4.1',
1220 i.e., no more `s-nail-14.4.1'. [a75437d, 183d59c] (Jürgen Daubert)
1222 Also move UAGENT out of `version.h' [f7be5be]
1224 Uh! v14.4 must have originated in a bad dream; good it's vanished.
1229 Thanks to the entire vivid and virile S-nail(1) user community is
1230 proper, especially Stephen Isard, Gavin Troy, Martin Neitzel.
1231 Not to forget Ryan Kavanagh and Ayan George.
1233 Note this time the changes are in reverse order, i.e., oldest first.
1238 15fbe09 ^bf9173f 'topic/varmac-unite'
1239 Simplification and unification of variable and macro handling
1240 40f6f58 ^15fbe09 'topic/cledit1'
1241 Command line editor; new manual section `Line editor'
1242 ad28a32 ^40f6f58 'topic/termsize'
1243 Honour POSIX mailx(1) and respect $COLUMNS and $LINES on startup
1244 dc3cd49 ^a446fd8 'topic/qf'
1245 You don't wanna know
1246 b8738f7 ^0651fd0 'topic/spam1'
1247 Interaction with SpamAssassin; new manual section `Handling spam'
1248 5419d6f ^b8738f7 'topic/make1'
1249 Reworked build system; please read `INSTALL' and `conf.rc'
1250 9ab4d6b ^5419d6f 'topic/list1'
1251 Slightly tweaked message thread display, fix `:u :r' to mean it
1256 - The default PAGER is now more(1). (But read on.)
1258 - The `echo' command is now compliant, and fully supports XSI.
1260 - The `group' and `ungroup' command aliases have been removed, they are
1261 `alias' and `unalias'.
1263 - We now have the capability of line editing and history.
1264 One may choose from not less than three different implementations:
1265 a builtin editor as well as possible linkage against BSD editline(3)
1266 and also a GNU readline(3) compatible layer.
1267 Please read the new manual section `Line editor'.
1269 Input is now compliant in that an interactive line may be continued
1270 after escaping the newline character with a backslash.
1271 [topic/cledit1] (all of them)
1273 The *prompt* variable may now contain shell escapes, just like the
1274 `echo' command. [0938d8a]
1275 As a special extension the new \? escape, when used within *prompt*,
1276 will expand to the exit status of the last command. [41076d2]
1278 - The POSIX standard environment variables $COLUMNS and $LINES are now
1279 honoured upon startup. [topic/termsize]
1281 - The `help' / `?' commands now support abbreviation, i.e.,
1282 ``$ ? unc'' should now find `uncollapse'. [7b86195]
1284 - The `~' abbreviation that has been introduced as an alias for `call'
1285 is now a real command, not a magic shortcut. [9987289]
1287 - The new variable *quote-as-attachment* can be used to additionally
1288 embed the quoted message as a `message/rfc822' MIME attachment.
1291 - The compose-mode command `~@' will now attach messages from the
1292 current mailbox if given a filename of the style `#NUMBER'.
1293 Please read the corresponding manual section `Tilde escapes', though.
1295 - The `WANT_JUNK' and `WANT_SCORE', as well as Gunnar Ritters junk mail
1296 management have been removed.
1298 Instead S-nail(1) can now support interaction with SpamAssassin, but
1299 sofar only via the spamc(1) / spamd(1) client / server pair of
1300 programs that ships as part of SpamAssassin. The new configuration
1301 directive `WANT_SPAM' controls wether this feature is desired.
1303 Please read the new manual section `Handling spam'.
1304 [topic/spam1] (Martin Neitzel)
1306 (S-nail(1) is now *definitely* floating-point free.)
1308 - The configuration and make system have been overhauled / reorganized.
1309 The configuration is now in `conf.rc', also contains directives like
1310 `PREFIX' etc, and is always read in. However, only those directives
1311 which are not yet set (via environment or command line overwrites) are
1312 incorporated into the set of configuration options. Therefore
1317 will now build S-nail(1) twice, because of the changed configuration.
1319 Note that `WANT_GSSAPI' is now by default disabled, which shrunk
1320 a freshly started s-nail image by more than 30 percent.
1322 We're not finished yet in that there is no dependency graph etc.
1323 Please do read `INSTALL' and `conf.rc'.
1326 - Message selection has been slightly bugfixed in that `:u :r' really
1327 means `:u' AND `:r'. Compared to NetBSD Mail(1) it's still a shame.
1329 Threaded message display has been slightly changed in that within
1330 a thread identical Subject: lines are not repeated. It may not be
1331 perfect yet due to the general list / thread state. [topic/list1]
1333 - If, upon startup, the environment variable `NAIL_NO_SYSTEM_RC' is set,
1334 then the system wide initialization file isn't read, just as if the
1335 `-n' option had been given. [1b31535]
1337 - It is now possible to use CTRL-C during connection hangs. (But in
1338 general error recovery capabilities of the socket related
1339 infrastructure is non-existent, practically speaking.) [45a9f36]
1341 - *quote-fold* has been temporarily disabled, as it is not multibyte
1344 No review for v14.4. And today is Friday, the 13th. Ouuuh!
1349 I should *maybe* should have and want to give prominence to
1350 Martin Neitzel for this, i maybe have misunderstood.
1352 - Bugfix *synchronous* *pipe-** execution..
1354 Well, unfortunately yet another newly introduced bug slept in
1355 S-nail v14.3[.1] -- [a8d724b3, Add @ and @& shell command prefixes
1356 for pipe-MIMETYPE, 2013-05-03] falsely changed the waiting state
1357 for subprocesses, as has shown up by a HTML-only mail on the
1359 'Seems i'm collecting one line fixes in this codebase; this needs
1360 to change in the future.
1365 I want to give prominence to Juergen Daubert (jue AT jue DOT li), who
1366 reported that i've broken plain-old unfancy send mode in 14.3.
1368 + Ok, i'll hope we're out of new errors for the v14.3 series with that.
1370 - New variable: *batch-exit-on-error*.
1371 Only works if the new -# command line option has been given, and will
1372 check the "current" exit status whenever one operation completes
1373 (S-nail returns to the command prompt).
1374 If the exit status implies error (e.g., sending the last message
1375 failed) then we exit forcefully with that error status. (The normal
1376 behaviour is that the status is reset when the command loop ticks.)
1379 - While here again, i've added the new -# command line option.
1380 This is the first step to implement a reliable batch mode;
1381 unfortunately it still selects the users system mailbox on startup,
1382 because we simply cannot go to "no" mailbox for quite some time -- at
1383 some future time we will be able to go to some VOID thing, and then
1384 this will end up as a rather efficient batch mode.
1385 For now it sets *dot*, *emptystart*, *noheader* and *sendwait*, and
1386 also implies the -~ command line option. [7549569]
1389 printf "m ${MBOX}\n~s subject1\nE-Mail Körper 1\n.\n" &&
1390 printf "m ${MBOX}\n~s subject2\nEmail body 2\n.\n" &&
1392 ) | MAILRC=/dev/null "${NAIL}" -n -#
1394 - Also, -N set *header* instead of *noheader*. [7b4a13f6]
1397 - Plain old unfancy invocations like
1400 $ echo bla|s-nail ./FILE1
1402 had been broken (by [522cb3ec]). [260e19d]
1408 Thanks to Gavin Troy (gavtroy AT gmail DOT com) who inspired the @ and
1409 @& pipe-command prefixes.
1414 - S-nail has been registered at Coverity Scan, and the third build
1415 (after topic branches *coverity-444* and *coverity-444.2*) produced no
1416 more errors. (<http://scan2.coverity.com/projects/444>.)
1417 (Then i used POP3 and IMAP and fixed some SIGSEGV. ;) Still didn't
1418 look at S/MIME, Maildir, caches etc... o()
1420 - S-nail v14.3 doesn't produce any spurious linker warnings on
1421 OpenBSD 5.3; all (correct!) use cases of strcpy() and strcat() have
1422 been replaced. [7bdf330, 2c8d7cb]
1424 - This is the first release with a (though very short) review -- i'm
1425 slowly getting comfortable with the code. (But i'm too stupid to
1426 perform reviews on patches, 'always did reviews on C++/Perl/xy
1427 classes. Aaah, how beautiful ... objects.)
1432 - It is now possible to "call" macros without using the `call' command
1433 by prefixing them with a tilde, as in
1442 - Added the *pop3-bulk-load* option.
1443 Yes, there are mailing lists etc. which use plain text email, and,
1444 there, headers are often more data than the body, so it doesn't make
1445 sense to download the headers twice (unfortunately POP3 doesn't
1446 support a BODY command; if only it would support a RETRDELE command..)
1449 And yep, from this changeset on i personally use S-nail even over the
1450 network, no longer my stale and incomplete S-Postman. And i can tell
1451 you, this damn thing is so silent, i always set *verbose* not to go
1452 grazy ... but .. i hate to say it .. the healing will take time.
1454 - POP3 will now try to use APOP authentication automatically; thus the
1455 *use-apop* stuff has been replaced by *pop3-no-apop* options (just in
1456 case there are POP3 servers which advertise they support APOP but in
1457 fact fail to do so; anyone?) [6c3c5575]
1459 - Some IMAP segmentation violations have been fixed:
1461 ? fi imaps://user1@localhost
1462 Password:Interrupt <- CNTRL-C
1463 ? set imap-auth=cram-md5 <- hey, 'forgot to set correct auth
1464 ? fi imaps://user1@localhost
1465 IMAP write error: error:140D00CF:SSL routines:SSL_write:protocol is shutdown
1468 And also, when *folder* was set to an IMAP account but hasn't been
1469 opened yet, and no IMAP account ever has been opened, a string
1470 comparison against a NULL pointer yet caused a SIGSEGV, too.
1473 - `set folder=' now tolerates `%:' and expands PROTOs stuff etc.:
1475 ? short xp %:imaps://user1@localhost
1478 Pure convenience so that it doesn't need to be typed twice (still no
1479 completion in sight...). Note that setting *folder* to a POP3 box
1480 will now be actively rejected. [b12b17f5]
1482 NOTE: while implementing this i've detected another dead-end
1483 miscondition in S-nail -- you really should ensure that your target
1484 folder/box is connected before you leave your current POP3/network
1485 based folder, if there is data to be moved to the target (i.e.,
1486 mbox). This problem will persist for a long time due to the way the
1487 entire codebase functions; i hope i can find a short/mid-term
1488 solution, but the real healing will take years. The mentioned
1489 solution would at least make S-nail interruptable, currently we get
1490 stuck and interrupts are blocked...
1492 - If you're using S-nail on Mac OS X and have seen some segmentation
1493 faults when expanding shell stuff then you may be pleased to hear that
1494 S-nail now works around an Apple bug. [63273772]
1496 - The builtin mime.types have been corrected and a lot of new ones have
1497 been added. New data from
1498 <http://svn.apache.org/viewvc/tika/trunk/tika-core/src/main/resources/\
1499 org/apache/tika/mime/tika-mimetypes.xml>, thanks! [8072fcb6]
1501 - BEWARE: handling of command line arguments has changed a bit!
1503 1. The -D, -d, -E, -i, -N and -v command line options are now
1504 implemented by means of setting the respective option, as via -S.
1505 (This means that from now on resource files can only *temporarily*
1506 overwrite command line arguments.)
1508 2. The -I and -T command line arguments have been dropped.
1509 It seems Gunnar Ritter stopped developing nail/Heirloom mailx once he
1510 started implementing Newsreader functionality. It'll take a long time
1511 until we get there, so for now drop all the Newsreader stuff.
1513 3. Handling of -r has been changed. E.g.:
1515 s-nail -A test -Snoeditalong -r 'La mort est <fem@me>' -d
1516 ? set from=bummer@m1.com
1520 Sendmail arguments: "sendmail" "-i" "-r" "fem@me" "t1"
1521 ? set from=bummer@m2.com
1524 Sendmail arguments: "sendmail" "-i" "-r" "fem@me" "t2"
1528 s-nail -A test -Snoeditalong -r '' -d
1529 ? set from=bummer@m1.com
1533 Sendmail arguments: "sendmail" "-i" "-r" "bummer@m1.com" "t1"
1534 ? set from=bummer@m2.com
1537 Sendmail arguments: "sendmail" "-i" "-r" "bummer@m2.com" "t2"
1539 [*main-fun-cleanup* topic branch]
1541 - *smime-sign-include-certs-** stuff works again, oops.. [9a8597c6]
1543 - A whole lot of smallest and small fixes due to registration at
1544 Coverity Scan, as project 444. Error handling in S-nail is ridiculous.
1545 [*coverity-444* and *coverity-444.2* topic branches. The sheer number
1546 of fixes was the reason to sit down and go for unplanned S-nail v14.3]
1548 - *idna-strict-checks* has been dropped. It's silly to have in a MUA,
1549 especially given that GNU LibIDN doesn't ship with a lot of rules.
1550 We were able to drop quite some code (and a use-after-free, too :().
1553 - The ~p tilde command displays attachments more verbose.
1554 Until the big big MIME and send layer rewrite :) this is intermediate
1555 since until then we do not really know neither MIME type nor charset
1556 of an attachment at the time this is displayed (for sure). Yet
1557 i think it's nicer to show what we have than keep it the way it was.
1560 - @ and @& shell command prefixes have been added for the pipe-MIMETYPE
1561 mechanism. The former suppresses filters if multiple messages are
1562 displayed at once, the latter adds asynchronous program execution on
1563 top of that. E.g., to display PDF documents, but only if you
1564 *explicitly* address the message *alone and by itself*, and without
1565 blocking S-nail and the $PAGER, do:
1567 set pipe-application/pdf="@&cat >"${TMPDIR}"/s-nail${$}.pdf;\
1568 mupdf "${TMPDIR}"/s-nail${$}.pdf; rm "${TMPDIR}"/s-nail${$}.pdf"
1570 (Inspired by Gavin Troy.) [a8d724b3]
1572 Note: most of that had been posted to nail-devel@ already, but it was
1573 tweaked ([251b636]) so that you now *really* have to say `p MSGNO' to
1576 - The NETLESS CONFIG= has been removed; it is almost identical to
1577 MINIMAL now (i.e., without WANT_JUNK and WANT_SCORE).
1579 - WANT_JUNK and WANT_SCORE have been disabled by default.
1580 They don't seem to be too useful; i hope i can implement
1581 a SpamAssassin hook for (downloaded) mail messages for v14.4.
1582 If so, expect these two "modules" to become removed completely.
1587 Another unplanned (minor) bugfix release after Gavin Troy (gavtroy AT
1588 gmail DOT com) pointed out that MIME CTE decoding was broken, who
1589 i therefore want to give a lot of prominence right here.
1591 - Fix MIME content decoding which has been broken by [01c0e135].
1598 An unplanned (minor) bugfix release after i've found two bugs today and
1599 heard from Jérémie Courrèges-Anglas (jca+nail AT wxcvbn DOT org) that
1600 there exists a S-nail OpenBSD package.
1602 I want to give prominence to the following people that helped to
1603 improve S-nail(1) during this development cycle, in order of
1604 appearance: Dirk Peters (peters AT schwertfisch DOT de).
1606 Thank you very much, and best from Germany!
1608 - Some warnings of newer clang(1) versions were silenced, including yet
1609 another alloca(3) problem (see *memtracer* topic branch in v14.0
1612 - Tweaking the MIME boundary detection left a little hole that could
1613 cause boundaries not to be detected, as has been shown by a Microsoft
1614 Word generated mail on the ICU list. [11e5fb5b]
1616 - A format string could overflow bounds if unrealistic
1617 (18446744073709551615) line numbers or message sizes would have been
1618 produced. [faa65c40]
1620 - An algorithmic error could cause overlong lines which wrapped around
1621 to the next display line. [ade52660]
1624 v14.2, 2013-03-15 [v14.1, 2013-03-12]
1625 -------------------------------------
1627 I want to give prominence to the following people that helped to
1628 improve S-nail(1) during this development cycle, in order of
1629 appearance: Martin Neitzel, Christos Zoulas, Stephen Isard, jgw@txo.org
1632 Thank you very much, and best from Germany!
1634 + v14.2 differs from v14.1 only by one commit, one that fixes
1635 (mime_fromhdr(): partial rewrite using n_iconv_str(), 2013-03-12),
1636 which i hastily implemented just hours before the release of v14.1,
1637 and simply shouldn't have made it (into there).
1638 The v14.1 tarball has been removed from the server.
1640 - A fix for the quoted-printable codec: "message truncation" occurred
1641 when a mail maliciously used a soft linebreak to escape the linebreak
1642 of a completely empty line.
1643 (That resulted in 0 written and 0 leftover bytes, a condition that was
1644 declared erroneous back in november 2012 when i started handling I/O
1647 - The "folders" command will work again when given an argument.
1648 A fault of mine introduced in (cmd1.c: expand() may fail, 2012-10-23).
1650 - The Base64 codec has been touched again, and we are finally capable to
1651 perform sequential decoding; this was targeted for the MIME/send layer
1652 rewrite, but it actually was possible today.
1653 The result as seen in ps(1), running on the Base64 encoded HTML5
1654 standard (4622545 bytes HTML, with a NUL appended to force Base64
1655 encoding, resulting in a 6244793 bytes email):
1657 7420 s006 S+ 2:22pm 0:10.65 plain-nail -f HTML5
1658 1440 s006 S+ 2:23pm 0:00.36 ./s-nail -f HTML5
1660 (So the only thing that is left for a good throughput is sequential
1661 decoding of quoted-printable encoded parts that maliciously use soft
1662 linebreaks to convert an entire part to a single line. And i've seen
1663 that from Apple Mail.)
1665 - New option: *mime-allow-text-controls* (rather long manual entry).
1667 - *smtp-auth-password-user@host* and *smtp-auth-user-user@host* will
1669 (Reported by jgw@txo.org in November 2011, fixed by Gavin Troy in
1672 - Most *headline* formats now do support the '-' left-alignment flag.
1673 Note that you most likely have to change your *headline* accordingly.
1674 (The still missing %n format is one reason why there will be v14.2.)
1676 - *datefield* and *datefield-markout-older* can now be set to
1677 strftime(3) format strings (except %n).
1678 (From Stephen Isard's wishlist.)
1680 - A possible SEGV has been found and also fixed by Stephen Isard.
1681 (The "legendary" cross-world stereo fix!)
1683 - Wow! S-nail will finally compile on GNU based Linux systems like
1684 Slackware 14 etc. (Found while hunting bug reported by
1687 - New option: *datefield-markout-older* can be used to choose
1688 a different date display for mails that are older than six months,
1689 in equal spirit to what POSIX describes for the -l option of the ls(1)
1690 command (Stephen Isard).
1692 - (Exotic) Years are (would) now (be) interpreted correctly according to
1695 - CRAM-MD5 usage has been fixed.
1697 - *folder* updates are now tracked when set, and we will show the
1698 realpath(3) name of it, showing PREFIX..SUFFIX if that wouldn't fit on
1700 Tracking updates made it also possible to perform other more expensive
1701 tasks when setting *folder*, so that it is now possible to do
1707 et cetera (both ideas by Christos Zoulas).
1709 - Bugfix for the ~@ tilde-escape in non-interactive mode.
1710 (readtty(): quick shot: work in pipelines (on non-TTY).., 2013-01-25)
1711 introduced the possibility to "read data from the terminal" (STDIN
1712 that is) in non-interactive mode.
1713 The manual documents that attachment input must be terminated with an
1714 empty line, but if that had been omitted, as in the example below, we
1715 would have yet entered an endless loop.
1717 $ cat <<_EOT | /s-nail -~ -s boom ./OUT
1723 - Alias expansion will now be performed for members of Reply-To: fields
1726 - Decoding quoted-printable will now be more relaxed.
1727 (Even though the standard says that users should be given a hint when
1728 input is not absolutely clean; a possible warning will be added later,
1729 when we have an error message ring.)
1731 - New option: *mimetypes-load-control* can be used to control which of
1732 the mime.types resources will be loaded.
1734 - The builtin default mime.types have been extended a bit.
1739 I want to give prominence to the following people that helped to
1740 improve S-nail(1) during this development cycle, in order of
1741 appearance: John Dodson, Gianluca Ramunno, and Anon Ymous from the
1747 - Encoding defaults to *quoted-printable* not *8bit*.
1748 This has no technical background except that i think it's the better
1751 - Small progress for the "getting stuck due to the current folder
1752 becomes inaccessible due to whatever reasons" problem.
1753 (schdir(): realpath() local files before leaving CWD.., 2013-01-08)
1755 - The names of temporary files have changed. Whereas not all uses of
1756 temporary files already use really meaningful names, it has yet become
1757 possible to use the pattern "*mail-*"; or, to be compatible with
1758 NetBSD Mail(1) in one go, "*mail*". (E.g., in my ~/.vimrc you'd read:
1759 :au BufRead,BufNewFile *mutt*,*mail* setl fenc= | setf mail
1760 [the *mutt* is a leftover from times when i've used MUAs that suck].)
1765 - The Quoted-Printable MIME handling has been rewritten completely.
1766 We now correctly encode files with the MS-DOS newline sequence (CRLF).
1767 (Part of the *mime-cte* topic branch.)
1769 S-nail(1) continues to be able to handle text messages and text
1770 attachments without a trailing newline, but because these
1771 Content-Transfer-Encoding related things are now handled by the C-T-E
1772 layer instead of by sendout.c a text message body that comes in as
1773 part of a complete message via the -t command line option will loose
1774 the missing final newline (i.e., it'll gain one).
1775 This problem does *not* occur when *only* the message body comes in
1776 via STDIN, as in 'cat FILE | s-nail', but *only* when the -t option is
1778 (sendout.c: does no(t/ longer) know about CTE internals!, 2013-02-09)
1780 - Filename arguments for -a are now processed *after* all the resource
1781 files have been loaded etc., so that the usual "folder" specifics can
1782 be used (provided that proper care for shell quoting was taken).
1783 ((main(): delay -a processing.., 2013-01-10), as a part of the
1784 *mainaflags* topic branch.)
1786 - (d38c5bd, When the write command asks.., 2004-11-23) added support
1787 for pipes when saving attachments during a "write" command.
1788 It however used the wrong SIGPIPE signal handler; e.g.:
1790 Enter filename for part 2 (application/x-gzip): |exit
1793 Of course, it still performs a jump and that most likely leaves memory
1794 chunks behind, thus causing some memory leaks. This will be
1795 a long-term problem (you may want to read [mime.c:fwrite_td(): TODO
1796 notes on unfixable leaks, 2013-01-14] for more).
1797 (send.c:sendpart(): fix longjmp() SIGSEGV.., 2013-01-29)
1799 - Fixed a name quoting regression that i've introduced in
1800 (Rewrite *extract().., 2012-10-20), that would have caused
1801 "x \"y\" z" to become "x"y" z" instead of "x "y" z".
1802 (S-nail still does not really have RFC compliant parsers, just as
1803 NetBSD Mail(1) has, i.e., there are structured and unstructured fields
1804 etc... I hope i can provide them in v15.0.)
1805 (names.c:yankname(): fix quote regression.., 2013-01-29)
1807 - The IDNA conversion now assumes domain names are specified in
1808 *ttycharset*, rather than in the LC_CTYPE locale charset.
1809 I.e., it integrates into the usual character set specifications.
1810 (IDNA: honour *ttycharset* for domain names, 2013-01-18)
1812 - The new *editalong* variable will automatically spawn an editor when
1813 composing a mail in interactive mode, just as if `~e' was given.
1814 (Add new *editalong* variable, 2012-01-07)
1816 - The manual has been converted to mdoc.
1817 (The manual has been converted to mdoc, 2012-12-28)
1819 - The ~@ tilde escape, when given filename arguments, will treat the
1820 arguments as a comma-separated instead of a whitespace-separated list.
1821 (collect: change separator of ~@ tilde escape.., 2012-12-28)
1823 The interactive mode of ~@ has also been changed, rather massively.
1824 Please do reread what the manual says.
1825 ((collect: support multiple attachment charsets.., 2013-01-23), as
1826 part of the *attach* topic branch.)
1828 - Thanks to Gianluca Ramunno (ramunno DOT gianluca AT gmail DOT com)
1829 S-Nail will no longer try to issue a STARTTLS command when it is about
1830 to establish a SMTPS connection, a task that logically fails since the
1831 connection is already secured.
1832 (Interestingly the nail codebase performs the necessary test for IMAP
1834 While here the undocumented nail v11.0 *smtp-use-tls* legacy option
1836 (Fix SMPTS with a set *smtp-use-starttls*.., 2012-12-22)
1838 - The RFC 4155 compliant MBOX quoting is now exclusively used, the
1839 shitty *posix-mbox* variable has been removed again.
1840 (Shitty because i've implemented RFC 4155 compliant MBOX quoting and
1841 tested it, then added *posix-mbox* for those who liked the old
1842 behaviour and did not re-test -- the final code path was buggy.)
1844 In mails newly created and saved by S-nail(1) no From_ quoting at all
1845 will be used no more, but instead the rewritten MIME file classifier
1846 will detect unquoted From_ lines and enforce quoted-printable encoding.
1847 (This is an approach that is S/MIME compatible all through the way as
1848 the file data is not modified at all, but only encoded, so that the
1849 data checksum is not changed.)
1851 In yet existent mails that S-nail copies or moves around without
1852 reclassification an RFC 4155 compliant From_ line detector will apply
1853 MBOXO quoting (prepend a single '>') as necessary.
1854 Different to the old MBOXRD behaviour S-nail will neither quote yet
1855 quoted From_ lines ('>>From xy' -> '>>>From xy') nor will it unquote
1856 one quote level when reading etc. mails ('>> From xy' -> '>From xy').
1857 As a result the code could be simplified.
1859 This changeset also incorporates a fix for NetBSD PR bin/47453, as
1860 reported by Martin Brandenburg. I.e., some mailers, noticeably
1861 UW-imap (with MBX format only?), use non-compliant From_ lines with
1862 RFC 822 date specifications. Be aware of 'em.
1863 (RFC 4155 MBOX, and drop *posix-mbox* and foldergets().., 2013-01-06)
1865 - *rfc822-show-all* has been removed.
1866 It didn't work properly for more complex MIME structures, like
1867 message/rfc822 messages with attachments etc., just as i've seen today
1868 on the file(1) mailing list.
1869 So, instead of hacking it now i've dropped it and will come back with
1870 a better solution when the MIME and send layers have been overhauled.
1871 I.e., the real intent was to be able to specify that an embedded
1872 message/rfc822 is treated as a *unity*, and that's the goal.
1873 (Drop *rfc822-show-all*, 2013-01-23)
1874 [The manual will be adjusted in a different commit.]
1876 - *rfc822-no-body-from_* has been renamed to *rfc822-body-from_*.
1877 It thus must be set explicitly.
1878 On the other hand it now catches all cases...
1879 (*rfc822-no-body-from_* -> *rfc822-body-from_*, 2013-01-23)
1880 [The manual will be adjusted in a different commit.]
1882 - The new *charset-7bit* (defaults to US-ASCII) and *charset-8bit*
1883 (defaults to UTF-8) have been introduced.
1884 These are used if seven bit clean data is to be sent, and no
1885 *sendcharsets* are set or the convertion of all of them failed,
1888 - There is no functional change unless there is iconv(3) support.
1889 - There is no functional change unless you set them.
1890 (Introduce *charset-8bit* and *charset-7bit* variables.., 2013-01-18)
1891 [The manual will be adjusted in a different commit.]
1893 In addition the new *sendcharsets-else-ttycharset* variable can now
1894 be used to automatically use *ttycharset* as a *sendcharset(s)*,
1895 regardless of the new *charset-8bit* variable.
1896 (Add *sendcharsets-else-ttycharset* variable, 2013-01-24)
1897 [The manual will be adjusted in a different commit.]
1899 NOTE: before we apply charset conversion we now perform a string
1900 comparison to see wether character sets are identical. If the strings
1901 match (case-insensitively), then *no* conversion is performed.
1902 This means that code like
1904 $ printf "LATIN1: \0376" | s-nail -Ssendcharsets= -s boom ./out.txt
1906 *succeeds* in an UTF-8 environment now, whereas older versions would
1907 fail with an "illegal byte sequence" error (unless the iconv(3)
1908 library of the system would not perform any conversion that seems
1909 superflous, of course).
1911 I thought about making this optional, but, in fact, if this would be
1912 done in an environment without iconv(3) support then the result would
1913 be equally corrupt. And the way it is now we save the expensive and
1914 superflous conversions. (See TODO for more.)
1916 Please *do* reread the manual section "Character sets".
1917 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1919 - An attempt was made to improve MIME Content-XY: detection.
1920 It should be more RFC compliant, and just overall better :);
1921 a simple one-pass classifier cannot match libmagic(3), of course.
1923 This changeset removes support of the long obsoleted (4fee1ef,
1924 2005-01-06) *charset* variable, as well as for the
1925 *maximum-unencoded-line-length* variable that has been introduced in
1926 (48a652bd, 2005-07-26).
1928 For S-nail v14.0 it'll be no longer necessary to do
1930 $ tr -d '\015' < input | s-nail ...
1932 to transport files which use the $-DOS (terminal) newline (sequence).
1933 We still depend upon *sendcharsets* for a while, though.
1934 (Rewrite file-content classification.., 2013-01-02)
1936 - The new *mime-counter-evidence* variable can be used to force
1937 a classification of non-text MIME parts (attachments) by their
1938 filename, i.e., a "reverse-classification" just as would be performed
1939 if S-nail(1) would itself *send* the file(name). This can help
1940 against some stupid MUAs (Apple Mail?) that send .diff etc. files as
1941 `application/octet-stream' parts etc.
1943 At a later time this may become a valued option, causing a temporary
1944 save of unnamed attachments followed by a MIME classification of the
1945 file contents, followed by forced treatment as plain text if it seems
1946 to be human readable. But not yet. Just to warn you.
1947 (Add *mime-counter-evidence* variable.., 2012-12-29)
1949 - The special "pipe-" command "@" can be used to force treatment of
1950 a MIME message part as plain text (e.g.,
1951 'set pipe-application/pgp-signature=@' will henceforth print those
1952 signatures inline and as plain text).
1953 (Introduce the special "@" "pipe-" command, 2012-12-27)
1955 - The MIME types (as from mime.types(5)) will now be cached. Before
1956 all possible sources would have been opened, read and parsed for each
1957 and every message part that required detection of the MIME
1959 The new "mimetypes" command can be used to show or clear that cache.
1960 (Add mime.types(5) cache.., 2012-12-27)
1962 - A small set of MIME types (template: ./mime.types) will now become
1963 compiled into S-nail(1), and be used as a fallback if there are no
1964 ~/.mime.types and/or no /etc/mime.types, or those didn't contain
1965 a matching type. E.g., NetBSD 6 doesn't ship a default database.
1966 Also, file extensions will be matched case-insensitively (case of
1967 attribute values is not specified afaik?).
1968 (Introduce compiled-in mime.types(5).., 2012-12-21)
1970 - The undocumented *charset7* variable was removed.
1972 - The "Message X:" display leader has been changed and will henceforth
1973 be matchable via "^[-- Message \d+ -- \d+ lines, \d+ bytes --]:$".
1974 These lines can no longer be suppressed by setting the *quiet*
1975 option (which was yet possible for print and top, though undocumented).
1976 (Change "Message X:" display message.., 2012-12-20)
1978 - When displaying multipart messages the "Part X:" introductional string
1979 has been changed; if the Content-type: header is not *retain*ed, then
1980 this string will include the part's type and size. Ditto for
1981 Content-disposition: and a mentioned attachment filename.
1982 This is a first step only, for the final version the MIME and send
1983 layers will have to be adjusted. But the string will be matchable via
1984 a "^[-- #.* --]$" regular expression from now on.
1985 (Change "Part X:" display message.., 2012-12-20)
1987 - MIME boundaries in multipart messages are now handled better in that
1988 no boundary string should get through to the display.
1989 (Tweak MIME boundary detection.., 2012-12-20)
1991 - A couple of long standing, even pre-Heirloom mailx(1) memory leaks and
1992 segmentation violations, most of them related to configurations
1993 without alloca(3) support, as well as one leak that i have introduced
1994 when i implemented RFC 4155 MBOX handling, have been fixed.
1995 But S-nail should now survive non-alloca(3) configurations.
1996 (*memtracer* topic branch.)
1998 - The Base64 MIME handling has been rewritten completely.
1999 This was an urgent topic, because the old implementation (a) read in
2000 all lines of a base64 encoded text part, repeatedly resizing a string
2001 storage and repeatedly decoding that string until all the lines have
2002 been swallowed (i.e., or by accident the last decoded byte was
2003 a newline character, and that in turn may of course have fucked up for
2004 multi-octet encodings, dependent on the actual byte-order), (b) used
2005 function local static data to keep state in between multiple
2006 invocations, which messed up multi-byte/-octet encodings like this
2008 �5��ɽ���Aɥ����́��٥��������[lots of data follows]
2010 and (c) did not perform any error checking at all.
2011 The new one does not run into the problem that (a) tried to circumvent
2012 since leftover decoded data (as opposed to leftover *encoded* data) is
2013 transported along the call-chain for later use. It adds a minimal set
2014 of error handling ('may now see "[Invalid Base64 encoding ignored]"),
2015 with more to become possible in later S-nail versions when the entire
2016 layers are reworked. (Until then DOS newline sequences [CRLF]
2017 embedded into base64 will no longer be decoded to Unix LF newlines.)
2018 Base64 encoded lines will now be 76 characters long, as stated (as
2019 a maximum value) in RFC 2045, not 72 as before.
2021 The Base64 code core has been shamelessly stolen from NetBSD's
2022 Mail(1), and i guess it was the second time that this happened :=).
2023 (*base64-rewrite* topic branch; and reworked later on the *mime-cte*
2026 - The string allocation strategy has been tweaked some more to, i think,
2027 a final version (regarding algorithm).
2028 In normal non-interactive send mode it should now no longer need any
2029 dynamic memory at all (unless some dozen recipients are specified).
2030 (Several other places still use normal dynamic memory, of course.)
2031 (*dope-stringdope-again* topic branch.)
2033 - Support for NSS (Network Security Services) has been removed.
2034 I've never worked with it and are, regarding the complexity of
2035 network security, not willing to spend any time on it.
2036 SSL is installed on all systems i'm using and/or testing on by
2037 default, and so i've choosen to go this way.
2038 (It may be that sometime in the future S-nail will add support for
2039 libcurl(3) connectivity, and then it may happen that not only NSS
2040 support is reintroduced again, but also GNU TLS. All of that applies
2041 to network connectivity only, however, not to S/MIME afaik.)
2042 (*drop-nss-support* topic branch.)
2044 - I finally got a glue and understood that Sourceforge does (a) not
2045 support symbolic links and (b) doesn't like dots as regular parts of
2046 filenames. This means that all this time the promised s-nail.tar.gz
2047 symbolic link did not work, and that s-nailv13.3.tar.gz wasn't
2048 accessible either (via the web interface).
2049 In the future S-nail(1) will not provide any more symbolic links (the
2050 Sourceforge website offers a "download latest" thing which seems to
2051 work), and use underscores in filenames -- s-nailv13.3.tar.gz has been
2052 renamed to s-nailv13_3.tar.gz. The tags continue to use dot notation.
2055 - The *heirloom-plus* support branch has been removed.
2056 The code bases diverged a lot and even more to come.
2057 It doesn't make sense to put any effort in that.
2062 - Configuration on UnixWare 7.1.4 will succeed (shell issue fixed).
2064 - Even on DragonFly BSD the IMAP GSSAPI is now found
2065 (in /usr/pkg/include/krb5/gssapi/gssapi.h).
2067 - Support for pkgsrc(7) systems and automatic integration of
2068 C_INCLUDE_PATH and LD_LIBRARY_PATH path configurations.
2071 - Fixes a mortally embarassing regression that the current maintainer
2072 introduced before i really knew what i was doing, in (If *record* is
2073 set, avoid writing dead content twice.., 2012-09-14).
2074 It hit users that send through a MTA and have *record* set; in this
2075 combination data would not have reached the MTA.
2076 Interested parties may read the comment in savedeadletter() (part of
2077 the changeset) or the (Fix MTA/*record* descriptor clash..,
2078 2012-11-10) commit log.
2080 Deepest apologies to tortured users from the current maintainer!
2082 - RFC 4155 compatible MBOX file handling has been introduced, and so
2083 S-nail is now on par with (at least) NetBSD Mail in respect to this.
2084 It can be turned off with the new *posix-mbox* variable, which you may
2085 need to use since not all MUAs are capable to dig those MBOX files.
2086 E.g., less cutting-edge (.-) MUAs fail for this:
2088 |From - Thu May 10 20:40:54 2012
2089 |Date: Wed, 07 Nov 2012 11:48:30 +0100
2090 |To: super@duper.com
2095 |From - Thu May 10 20:40:54 2012
2096 |Date: Wed, 07 Nov 2012 11:48:30 +0100
2097 |To: super@duper.com
2100 |>From - Thu May 10 20:40:54 2012
2101 |From - Thu May 10 20:40:54 2012
2103 I'm not completely happy since S-nail *does* still quote those lines,
2104 how rare they may be -- it *does* modify message content. mutt(1)
2105 implements something more clever and that is quoted-printable encoding
2106 of the "F" from "From", when seen at the beginning of a line.
2107 This, when applied to just *any* "^From", will be a non-modifying and
2108 all-compatible solution.
2110 - SEND_MBOX handling has been changed to discard any Content-Length: and
2111 Lines: headers when it rewrites a message by default.
2112 I know that mutt(1) generates them (why, after
2113 http://www.jwz.org/doc/content-length.html?).
2114 Anyway, S-nail does neither use nor manage them, so that any
2115 modification renders those fields invalid, and then it seems best to
2116 discard them anyway.
2117 You may turn the new behaviour off with *keep-content-length*.
2122 The problem was that i really wanted to release on a 25th.
2123 But i have been able to improve S-nail(1) some more, so that this is
2124 possibly the first real release of it. So i'll add only things that
2125 have changed since v13 -- please see below for the complete picture.
2127 - A new CONFIG=CUSTOM make directive was added, and the new user.conf
2128 variables WANT_SCORE and WANT_DOCSTRINGS have been added. It is
2129 possible to create a floating-point free S-nail(1) now.
2132 - If a feature is disabled not even functions stubs should remain now.
2134 - Many places which will work only with local filenames do now actually
2135 check that the target is a local filename.
2137 - Space-separated lists should work again, at a few places at least.
2139 - Tilde commands will be possible, even with -r.
2141 - The *sendmail-progname* has been added after NetBSD 6 dropped the
2142 send-mail entry in mailer.conf(5), which broke S-nail(1). Now users
2145 - When editing messages via ~e or ~v file and pipe addressees will no
2148 - If recipients occur multiple times spread over lists, i.e., To:, Cc:,
2149 Bcc:, then only one occurrence remains, and in the "highest-order"
2152 - The "list" command prints the list alphabetically sorted (somewhat).
2154 - The "help" and "?" commands take an optional argument that shows
2155 a synopsis string for the given command (unless WANT_DOCSTRINGS was
2158 - String allocations are now more efficient. The situation can still be
2159 improved. However, for the first time Berkeley Mail(1) integrates
2160 harmonically into the system allocator, which may madvise(2) unused
2161 memory to the operating system as necessary and/or possible!
2166 Well, a version number 13 is anyway an ugly thing...
2168 commit 4f534bb33b7c911272cc66a0e3a9e47b73ad8deb
2169 Date: 2012-10-25 20:46:07 +0200
2171 FIX MIME quoted-printable encoding (char cast)..
2176 Well, one of the things that have already been started in v13 is
2177 the turn from using "int" when working with 8-bit characters to
2178 "unsigned char" (and as long as we do not support wide
2181 Unfortunately one very important piece of code, that is handling
2182 encoding to quoted-printable, still used integer instead of
2183 unsigned char, which caused an automatic extension cast to take
2184 place, and that resulted in a messed up output.
2190 I want to give prominence to the following people that helped to improve
2191 S-nail(1) during this development cycle, in order of appearance: Martin
2192 Neitzel, Ezequiel Garzón, Björn Persson, Paul Vojta, and, especially,
2193 John Dodson for warm words from beautiful Australia! Many thanks also
2196 After i've officially forked nail(1) aka Heirloom mailx(1) as S-nail(1)
2197 on 2012-09-18 i have been able to work five weeks almost fulltime on
2198 S-nail(1) development. The first three weeks can be characterized as
2199 hectic fireworks here and there, but then it got better and i was able
2200 to work more or less topic-centric. In the meanwhile S-nail(1) is more
2201 than 230 commits away from the Heirloom base--and drifting further apart.
2203 S-nail(1) v13 is the first release of S-nail(1), but it was forked from
2204 Heirloom mailx(1) 12.5 7/5/10 that arose from Berkeley Mail 8. unless
2205 i'm mistaken. What characterizes S-nail(1) v13?
2207 - The build system has been reworked almost completely.
2208 It is possible to fine-tune which features should be present in the
2209 binary and which don't. The name of the binary can be chosen, and
2210 that choice is reflected all through the manual and the template
2211 resource file. The manual is always complete and thus may document
2212 features that are not supported by the actual binary, though.
2213 Please see INSTALL for more.
2215 - Compiler warnings can now be used. Please see the example WARN= flags
2216 in the Makefile, but '-Wall -Wextra -pedantic' should be silent though
2217 certainly insufficient to reflect the complex work of modern compilers.
2219 - The following recipient address list combines some of the major
2220 improvements that have been made:
2222 <addr1@cdröm.de> (bier) , ./file1,
2223 Steffen Smöregäs (Humbabä) <sauer@bäüer.de> (Hummpäa) ,
2224 sabberlot@träbbel.de , (bier2) <a2@bür2.de> ,
2225 a3@b3.de (bier3) , <a4@b4.de> (bier4, und \"bier5\") ,
2226 |cat > pipe1 , (bier 6) <a6@bür6.de> , ./file2 ,
2227 (co\$mm1) abc1@düf.de (cö,bmm,2) (co\"m\"m.3) ,
2228 co\$bmm1 \"c,ömm2\" co\"m\"m.3 <abc2@däf2.de> , |cat > pipe2 ,
2231 That, on a single line, may be given to ":m" or (quoted) on the
2232 command line, or to "~c" or whatever, and it will work as expected
2233 (well, everything else would be a bug..) and result in the following
2234 sendmail(1) invocation:
2237 <-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>
2239 Date: Thu, 25 Oct 2012 17:12:15 +0200
2241 Cc: Steffen =?utf-8?Q?Sm=C3=B6reg=C3=A4s?=
2242 =?utf-8?Q?_(Humbab=C3=A4)?= <sauer@xn--ber-qla4j.de> (=?utf-8?Q?Hummp=C3=A4a?=),
2243 sabberlot@xn--trbbel-cua.de, moppel@xn--hppel-jua.org,
2244 <addr1@xn--cdrm-7qa.de> (bier),
2245 co$bmm1 =?utf-8?Q?"c,=C3=B6mm2"?= co"m"m.3 <abc2@xn--df2-qla.de>,
2246 (co$mm1) abc1@xn--df-xka.de (=?utf-8?Q?c=C3=B6,bmm,2?=) (co"m"m.3),
2247 (bier 6) <a6@xn--br6-hoa.de>, <a4@b4.de> (bier4, und "bier5"),
2248 a3@b3.de (bier3), (bier2) <a2@xn--br2-hoa.de>
2249 Subject: Re: SubjectTest
2251 Content-Type: text/plain; charset=us-ascii
2252 Content-Transfer-Encoding: 7bit
2257 So list parsing has been fixed, IDNA support has been added, and it is
2258 possible to mix pipe and file recipients *and* multiple thereof, and
2259 the result is still correct for *all* of them.
2260 I think this kind of list can be given wherever a user can directly
2261 enter such a list. And i think all that is unique to S-nail(1).
2263 - When writing back edited messages the target MBOX mailbox can no
2264 longer become "corrupted" when the trailing newline was removed during
2265 the edit. Also affected FreeBSD and NetBSD mail(1).
2267 - A security fix for CVE-2011-2895 was applied.
2269 - The generated Message-Id: is now more human-friendly.
2271 - The -h command line option has been dropped. Use "-O -h XY" if your
2272 MTA really supports that.
2274 - The -O and -r command line options no longer enforce a one-shot send
2275 mode, and instead persist for the duration of the entire session.
2277 - Variables set via the -S command line option are now (un)set twice;
2278 immediately and after all the resource files have been loaded.
2280 - Other new or changed options/commands, in order of appearance:
2281 recipients-in-cc, smime-sign-include-certs, quote-fold, stealthmua,
2282 add-file-recipients, write, rfc822-no-body-from_, rfc822-show-all,
2283 mail/Mail, idna-disable, idna-strict-checks, ??
2285 - In the codebase itself an effort to reduce duplicate work and
2286 introduce caching, and to minimize the use of local variables, was
2287 started, but that is long term. A lot of improvements here and there,
2288 too, like using the well MD5 optimization from Wei Dai, Chris Torek's
2289 hash algorithm for hash tables etc.
2291 - Incredibly important: an heraldic animal was found: snailmail.jpg!
2293 The full history can be inspected by issuing the git(1) command
2295 $ git log --reverse s-nail..s-nailv13
2297 A new TODO has been introduced, and it is getting longer and longer.