]> git.notmuchmail.org Git - notmuch/blob - test/T205-author-naming.sh
test: display key name in property tests
[notmuch] / test / T205-author-naming.sh
1 #!/usr/bin/env bash
2 test_description="naming of authors with unusual addresses"
3 . $(dirname "$0")/test-lib.sh || exit 1
4
5 test_begin_subtest "Add author with empty quoted real name"
6 add_message '[subject]="author-naming: Initial thread subject"' \
7             '[date]="Fri, 05 Jan 2001 15:43:56 -0000"' \
8             '[from]="\"\" <address@example.com>"'
9 output=$(notmuch search --sort=oldest-first author-naming and tag:inbox | notmuch_search_sanitize)
10 test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] address@example.com; author-naming: Initial thread subject (inbox unread)"
11
12 test_done