Hello.
"r.ductor" <[email protected]> wrote:
|Package: s-nail
|Version: 14.8.16-1
|Severity: wishlist
|
|Dear Maintainer,
|
|thnaks a lot for thice nice software.
Thank you -- and it is getting better, i hope..
|You might want to consider changing the default datefield to '%F %T' \
|or other iso variants.
|
|As a complete s-nail/mailx/mail newby I was really scaried by the headers \
|my firs h showed,
|the time ordering and year of the messages was compleately unclear.
|I took me one hour of googling and a lot of patience to dive in the \
|man to understand how
|s-nail works. I'm not sure that all other newbies will have the same \
|patience.
I see, sorry for that! The manual of v14.8 misses the link to
*datefield*, but v14.9 already includes it, so you will have
a direct reference chain from "On reading mail, and interactive
mode" over *headline* to *datefield*, which i think is ok: it will
be hyperlinked if the output format supports it, so you could get
there really fast.
The global /etc/mail.rc (/etc/s-nail.rc on Debian) includes
a commented-out example for *datefield* and
*datefield-markout-older*, already in v14.8, but now that i look
again there is no link to *headline*, which i will change in
a minute!
Regarding %F and %T... No, this i cannot do, because these
formats refer to newer ISO C versions (strftime(3)), and S-nail is
C89 compatible. You would be right to claim that the examples
from mail/s-nail.rc are not so either, however. And even if
i look at real old C library code you would then still be right
for the %g that i use for *datefield-markout-older*. Ooops.
So, the old code would actually support %R and %T, but not %F and
%g (and i am talking about @(#)strftime.c 8.1 (Berkeley)
%06/04/93" from CSRG, here).
So i have dropped the entire "default".rc stuff, because we will
provide initial values for *datefield{-markout-older}*:
+ ok_v_datefield, /* {i3val="%Y-%m-%d %H:%M"} */
+ ok_v_datefield_markout_older, /* {i3val="%Y-%m-%d"} */
I gave you credit for this, the commit is currently (but on the
development branch, which will soon change again) [1,credit:2].
Thank you, and, from grey Germany:
Ciao!
[1]
https://git.sdaoden.eu/cgit/s-nail.git/commit/?h=next&id=21b65e6ef720654fe0a6309a94354c7c9c97f247
[2]
https://git.sdaoden.eu/cgit/s-nail.git/commit/?h=next&id=373025818a3c13355d178565d12673719e711600
--steffen