]>
diplodocus.org Git - nmh/blob - test/format/test-localmbox
3 # Test that we can retrieve the local mailbox name from the profile via
7 if test -z "${MH_OBJ_DIR}"; then
8 srcdir
=`dirname "$0"`/..
/..
9 MH_OBJ_DIR
=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
12 .
"$MH_OBJ_DIR/test/common.sh"
16 testname
="Some User <some@domain.com>"
18 #### Remove existing Local-Mailbox: profile component, if any. Then
20 grep -v 'Local-Mailbox: ' ${MH} > ${MH}.new
22 echo "Local-Mailbox: ${testname}" >> ${MH}
24 # We can use "ap" to get the output of format commands
26 testoutput
=`${MH_LIB_DIR}/ap -format "%(localmbox)" ignore`
28 if [ x
"${testname}" != x
"${testoutput}" ]; then
29 echo "Expected ${testname}, got ${testoutput}"