X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Flong-id;fp=test%2Flong-id;h=0000000000000000000000000000000000000000;hb=a755c9d6a9099366cc82ba3a4bee8e6d2b83d529;hp=85e620fadd404f8c3ffaf4e4316f4f469e0fb943;hpb=84719b08f757a6079f4c3331d0c476d19b265948;p=notmuch diff --git a/test/long-id b/test/long-id deleted file mode 100755 index 85e620fa..00000000 --- a/test/long-id +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash -test_description="messages with ridiculously-long message IDs" -. ./test-lib.sh - -test_begin_subtest "Referencing long ID before adding" -generate_message '[subject]="Reference of ridiculously-long message ID"' \ - "[references]=\" -output=$(NOTMUCH_NEW) -test_expect_equal "$output" "Added 1 new message to the database." - -test_begin_subtest "Adding message with long ID" -generate_message '[subject]="A ridiculously-long message ID"' \ - "[id]=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-" -output=$(NOTMUCH_NEW) -test_expect_equal "$output" "Added 1 new message to the database." - -test_begin_subtest "Referencing long ID after adding" -generate_message '[subject]="Reply to ridiculously-long message ID"' \ - "[in-reply-to]=\" -output=$(NOTMUCH_NEW) -test_expect_equal "$output" "Added 1 new message to the database." - -test_begin_subtest "Ensure all messages were threaded together" -output=$(notmuch search 'subject:"a ridiculously-long message ID"' | notmuch_search_sanitize) -test_expect_equal "$output" "thread:XXX 2001-01-05 [1/3] Notmuch Test Suite; A ridiculously-long message ID (inbox unread)" - -test_done