2 test_description='messages with unquoted . in name'
6 '[from]="Some.Name for Someone <bugs@quoting.com>"' \
7 '[subject]="This message needs more quoting on the From line"'
10 '[from]="\"Some.Name for Someone\" <bugs@quoting.com>"' \
11 '[subject]="This message has necessary quoting in place"'
14 '[from]="No.match Here <filler@mail.com>"' \
15 '[subject]="This message needs more quoting on the From line"'
18 '[from]="\"No.match Here\" <filler@mail.com>"' \
19 '[subject]="This message has necessary quoting in place"'
22 test_begin_subtest "Search by first name"
23 output=$(notmuch search from:Some.Name | notmuch_search_sanitize)
24 test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread)
25 thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message has necessary quoting in place (inbox unread)"
27 test_begin_subtest "Search by last name:"
28 output=$(notmuch search from:Someone | notmuch_search_sanitize)
29 test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread)
30 thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message has necessary quoting in place (inbox unread)"
32 test_begin_subtest "Search by address:"
33 output=$(notmuch search from:bugs@quoting.com | notmuch_search_sanitize)
34 test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread)
35 thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message has necessary quoting in place (inbox unread)"
37 test_begin_subtest "Search for all messages:"
38 output=$(notmuch search '*' | notmuch_search_sanitize)
39 test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread)
40 thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message has necessary quoting in place (inbox unread)
41 thread:XXX 2001-01-05 [1/1] No.match Here; This message needs more quoting on the From line (inbox unread)
42 thread:XXX 2001-01-05 [1/1] No.match Here; This message has necessary quoting in place (inbox unread)"