diff options
author | Carl Worth <cworth@cworth.org> | 2010-06-03 16:43:21 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-06-03 16:43:21 -0700 |
commit | 33765e5c2eb18de14fc542a6324c0806af8f59f7 (patch) | |
tree | 6bb917952de75bd3f17021bd9134b366f9d82253 /test/notmuch-test | |
parent | 1671eaecdb69133bc88fd212c77b68122fa27600 (diff) |
Add a test case for the previous commit.
The commit said it fixed a problem with headers >200 characters
long. But examination of the code suggests that it was a header of
exactly 200 characters long that caused the problem. So we add a test
case for that here.
Before the fix in the previous commit, valgrind would detect many
errors when replying to the message created with this test case. After
that commit, those errors are gone.
Diffstat (limited to 'test/notmuch-test')
-rwxr-xr-x | test/notmuch-test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/notmuch-test b/test/notmuch-test index a861df1..ca41408 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -798,6 +798,22 @@ References: <${gen_msg_id}> On Tue, 05 Jan 2010 15:43:56 -0800, Sender <sender@example.com> wrote: > Un-munging Reply-To" +printf " Message with header of exactly 200 bytes...\t" + +add_message '[subject]="This subject is exactly 200 bytes in length. Other than its length there is not much of note here. Note that the length of 200 bytes includes the Subject: and Re: prefixes with two spaces"' \ + '[date]="Tue, 05 Jan 2010 15:43:56 -0800"' \ + '[body]="200-byte header"' + +output=$($NOTMUCH reply id:${gen_msg_id}) +pass_if_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org> +Subject: Re: This subject is exactly 200 bytes in length. Other than its length there is not much of note here. Note that the length of 200 bytes includes the Subject: and Re: prefixes with two spaces +Bcc: test_suite@notmuchmail.org +In-Reply-To: <${gen_msg_id}> +References: <${gen_msg_id}> + +On Tue, 05 Jan 2010 15:43:56 -0800, Notmuch Test Suite <test_suite@notmuchmail.org> wrote: +> 200-byte header" + printf "\nTesting handling of uuencoded data:\n" add_message [subject]=uuencodetest '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' \ |