#!/bin/sh # # Tests to see if bursting messages works correctly. # . "$MH_TEST_COMMON" # # Create a test message that we can burst # msgpath="`mhpath b`" msgnum="${msgpath##*/}" cat > "$msgpath" < To: Test Recipient Date: Friday, 29 Sep 2006 00:00:00 Subject: Test digest ------- Message one From: Mister Burster To: Nobody 1 Date: Thursday, 28 Sep 2006 00:01:00 Subject: Message one This is message one ------- Message two From: Mister Burster To: Nobody 2 Date: Thursday, 28 Sep 2006 00:02:00 Subject: Message two This is message two For real. ------- End of all messages EOF runandcheck "scan $msgnum" <"$msgpath" < To: Test Recipient Date: Friday, 29 Sep 2006 00:00:00 Subject: Test digest This is a preamble ------- Message one From: Mister Burster To: Nobody 1 Date: Thursday, 28 Sep 2006 00:01:00 Subject: Message one - -This is message one ------- Message two From: Mister Burster To: Nobody 2 Date: Thursday, 28 Sep 2006 00:02:00 Subject: Message two This is message two - For real. ------- Message three From: Mister Burster To: Nobody 3 Date: Thursday, 28 Sep 2006 00:03:00 Subject: Message three Will this one work? ------ Message three End of all messages EOF runandcheck "burst $msgnum" </dev/null runandcheck "next" < To: Nobody 1 Date: Thursday, 28 Sep 2006 00:01:00 Subject: Message one -This is message one ! runandcheck "next" < To: Nobody 2 Date: Thursday, 28 Sep 2006 00:02:00 Subject: Message two This is message two For real. ! runandcheck "next" < To: Nobody 3 Date: Thursday, 28 Sep 2006 00:03:00 Subject: Message three Will this one work? !