]>
diplodocus.org Git - nmh/blob - test/mhbuild/test-attach
2 ######################################################
4 # Test the use of the Attach: header
6 ######################################################
8 if test -z "${MH_OBJ_DIR}"; then
9 srcdir
=`dirname "$0"`/..
/..
10 MH_OBJ_DIR
=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
13 .
"$MH_OBJ_DIR/test/common.sh"
17 draft
="$MH_TEST_DIR/$$.draft"
18 expected
="$MH_TEST_DIR/$$.expected"
19 actual
="$MH_TEST_DIR/$$.actual"
22 # Test out a simple draft, one part.
26 To: Mr Test <mrtest@example.com>
29 Attach: ${srcdir}/test/mhbuild/tiny.jpg
36 To: Mr Test <mrtest@example.com>
40 Content-Type: image/jpeg; name="tiny.jpg"
41 Content-Description: tiny.jpg
42 Content-Disposition: attachment; filename="tiny.jpg"
43 Content-Transfer-Encoding: base64
48 check
"$draft" "$actual"
51 # Check out more common case, one (or more) attachments
52 # along with message text.
56 To: Mr Test <mrtest@example.com>
59 Attach: ${srcdir}/test/mhbuild/tiny.jpg
69 # Two parts, one attachment