#!/bin/sh
[ "$1" = "-h" ] && cat <<tac

This example tests the features/changes added for release 1.64:

tac

$ANOMY/bin/sanitizer.pl -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
