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
EOF
# check getmymbox, with match
+start_test "getmymbox, with match"
run_test 'fmttest -message -format %(getmymbox{from}) first' \
'Test1 <test1@example.com>'
# 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 <test11@example.com>
run_test 'fmttest -message -format %(getmyaddr{cc}) last' \
'test1@example.com'
+finish_test
exit $failed