summaryrefslogtreecommitdiffabout
path: root/mh/tests/fmtfunc.at
authorSergey Poznyakoff <gray@gnu.org.ua>2017-07-02 13:14:56 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2017-07-02 13:14:56 (GMT)
commit1c5b3cd3999a19b4ef404d7aafa557ae55461a48 (patch) (side-by-side diff)
treefc52239549b3ca36db1feff59a97bed798b57bf3 /mh/tests/fmtfunc.at
parent45533be53dacd60ee8fa0c648e60dcc76bc83e1f (diff)
downloadmailutils-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') (more/less context) (ignore whitespace changes)
-rw-r--r--mh/tests/fmtfunc.at12
1 files changed, 12 insertions, 0 deletions
diff --git a/mh/tests/fmtfunc.at b/mh/tests/fmtfunc.at
index 113b588..28c109a 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

Return to:

Send suggestions and report system problems to the System administrator.