diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-07-02 16:14:56 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-07-02 16:14:56 +0300 |
commit | 1c5b3cd3999a19b4ef404d7aafa557ae55461a48 (patch) | |
tree | fc52239549b3ca36db1feff59a97bed798b57bf3 /mh/tests/fmtfunc.at | |
parent | 45533be53dacd60ee8fa0c648e60dcc76bc83e1f (diff) | |
download | mailutils-1c5b3cd3999a19b4ef404d7aafa557ae55461a48.tar.gz mailutils-1c5b3cd3999a19b4ef404d7aafa557ae55461a48.tar.bz2 |
MH: fix the nodate format function
* mh/mh_format.c (builtin_nodate): Call mu_parse822_date_time directly.
(mh_format_dump_disass): Escape literal strings on output.
* mh/tests/fmtfunc.at: Test nodate.
Diffstat (limited to 'mh/tests/fmtfunc.at')
-rw-r--r-- | mh/tests/fmtfunc.at | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mh/tests/fmtfunc.at b/mh/tests/fmtfunc.at index 113b58885..28c109a8f 100644 --- a/mh/tests/fmtfunc.at +++ b/mh/tests/fmtfunc.at @@ -383,8 +383,20 @@ FMTFUNC([putnumf], [010 ?35 ]) + # FIXME: putlit +FMTFUNC([nodate], +[%(nodate{date}) +%(nodate{from}) +], +[From: foo@example.org +Date: Sat, 01 Jul 2017 08:00:01 +0300 +body +], +[0 +1 +]) m4_popdef([FMTFUNC])
\ No newline at end of file |