summaryrefslogtreecommitdiff
path: root/mh/tests/fmtfunc.at
diff options
context:
space:
mode:
Diffstat (limited to 'mh/tests/fmtfunc.at')
-rw-r--r--mh/tests/fmtfunc.at26
1 files changed, 25 insertions, 1 deletions
diff --git a/mh/tests/fmtfunc.at b/mh/tests/fmtfunc.at
index bb81f8a01..b8eb66a08 100644
--- a/mh/tests/fmtfunc.at
+++ b/mh/tests/fmtfunc.at
@@ -650,7 +650,31 @@ FMTFUNC([mbox],
[gray
])
-# FIXME: mymbox
+AT_SETUP([mymbox])
+AT_KEYWORDS([fmtfunc format])
+AT_DATA([mh_profile],[Charset: auto
+Local-Mailbox: mu@example.net
+Alternate-Mailboxes: gray, *@mailutils.*
+])
+AT_DATA([message],[From: mu@example.net
+X-From-1: gray@localhost
+X-From-2: root@mailutils.org
+X-From-3: mu@example.com
+])
+AT_DATA([input.fmt],[%(mymbox{From})
+%(mymbox{X-From-1})
+%(mymbox{X-From-2})
+%(mymbox{X-From-3})
+])
+AT_CHECK([MH=`pwd`/mh_profile fmtcheck -form input.fmt -msgno 1 -width 80 message
+],
+[0],
+[1
+1
+1
+0
+])
+AT_CLEANUP
FMTFUNC([host],
[%(host{From})

Return to:

Send suggestions and report system problems to the System administrator.