3 # fakesendmail - A fake sendmail program used by the nmh test suite
4 # to test the pipe mts.
6 # This code is Copyright (c) 2012, by the authors of nmh. See the
7 # COPYRIGHT file in the root directory of the nmh distribution for
8 # complete copyright information.
11 if [ "$MH_TEST_DIR"x = x ]; then
12 printf "$0 is intended for use only by the nmh test suite\n"
18 [ "$arg" = -t ] && found_dasht=1
21 if [ $found_dasht -eq 0 ]; then
22 printf "$0 is intended to fake \"sendmail -t\" only, but no -t provided\n"
26 #### Put the message (on stdin) in a drop that the test knows about.
27 #### This will delete any lines in the message body that start with Bcc:,
29 sed -e '/^[Bb][Cc][Cc]:/d' | \
30 "${MH_LIB_DIR}"/rcvpack "${MH_TEST_DIR}"/Mail/fakesendmail.mbox