X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ddf3a8574f657dcb8c53fc5908e7bebbde1994b5..843bc850b2b7732c8969b9ad25e922fb09eaf4b3:/test/format/test-mymbox?ds=sidebyside diff --git a/test/format/test-mymbox b/test/format/test-mymbox index 6185e388..ee5e7270 100755 --- a/test/format/test-mymbox +++ b/test/format/test-mymbox @@ -53,9 +53,11 @@ run_test "echo \ 1 "Local-Mailbox with Alternate-Mailbox test" # check getmymbox, without match +start_test "getmymbox, without match" run_test 'fmttest -message -format %(getmymbox{from}) first' '' # check getmyaddr, without match +start_test "getmyaddr, without match" run_test 'fmttest -message -format %(getmyaddr{from}) first' '' grep -v 'Alternate-Mailboxes: ' "$MH" > "$MH".new @@ -65,14 +67,17 @@ Alternate-Mailboxes: test1@example.com EOF # check getmymbox, with match +start_test "getmymbox, with match" run_test 'fmttest -message -format %(getmymbox{from}) first' \ 'Test1 ' # check getmyaddr, with match +start_test "getmyaddr, with match" run_test 'fmttest -message -format %(getmyaddr{from}) first' \ 'test1@example.com' # check getmymbox and getmyaddr, with match of other than first address in +start_test "getmymbox and getmyaddr, with match of other than first address in" # component cat >`mhpath new` <<'EOF' From: Test11 @@ -90,4 +95,5 @@ run_test 'fmttest -message -format %(getmymbox{cc}) last' \ run_test 'fmttest -message -format %(getmyaddr{cc}) last' \ 'test1@example.com' +finish_test exit $failed