rm -f testsuite.msg1 testsuite.msg2
cat >testsuite.msg1 <<EOF
From: nobody@example.com
To: nobody@example.com
Subject: test

testa
EOF

cat >testsuite.msg2 <<EOF
From: nobody@example.com
To: nobody@example.com
Subject: test

testb
EOF

./dupfilter test <<EOF
./testsuite.msg1
1
2

./testsuite.msg1
3

./testsuite.msg1
4

./testsuite.msg2
5

./testsuite.msg1
6

EOF
