1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#!/bin/sh
[ "$1" = "-h" ] && cat <<tac
This example tests the features/changes added for release 1.64:
tac
$ANOMY/bin/sanitizer -nofprot $SAN_CONF \
'file_default_policy = accept' \
'file_default_filename = unknown.000' \
'file_name_tpl = ./.tmp.$$$' \
'header_rev = 0' \
'feat_testing = 1' \
'feat_fixmime = 1' \
'feat_log_trace = 1' \
'feat_log_inline = 2' \
'feat_log_stderr = 0' <<EOF 2>test.log >test.out
Date: Tue, 27 May 2003 12:19:14 GMT
From: aves-test-1054037954@bre.klaki.net
Message-Id: <200305271219.h4JE921460@is105.filter.complex.is>
To: bre@klaki.net
Subject: This is annoying
Content-Type: multipart/mixed; boundary="filter-test-boundary"
--filter-test-boundary
Content-Type: text/plain; filename="elephant.txt"
Begin 2004 with a kick to the head!
Yes indeed - this would cuase infinit loops before, hope it doesn't
do so no mo'.
--filter-test-boundary
Content-Type: text/plain; filename="stupid.pdf"
Content-Disposition: inline
Content-Transfer-Encoding: Quoted-Printable
This is fake binary data which should:
a) Be treated as Quoted-Printable from a system with
CRLF as the newline standard.
b) Be output as Base64 data, so it makes it intact to
the recipient.
--filter-test-boundary--
EOF
echo "*** Exit code was $? ***" >>test.out
exit 0
|