notmuch.git  about / heads / tags
Unnamed repository; edit this file 'description' to name the repository.
blob 68b85ced724eff3f57444ad043b01b7153b5f745 584 bytes (raw)
name: test/T205-author-naming.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#!/usr/bin/env bash
test_description="naming of authors with unusual addresses"
. $(dirname "$0")/test-lib.sh || exit 1

test_begin_subtest "Add author with empty quoted real name"
add_message '[subject]="author-naming: Initial thread subject"' \
	    '[date]="Fri, 05 Jan 2001 15:43:56 -0000"' \
	    '[from]="\"\" <address@example.com>"'
output=$(notmuch search --sort=oldest-first author-naming and tag:inbox | notmuch_search_sanitize)
test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] address@example.com; author-naming: Initial thread subject (inbox unread)"

test_done

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

git clone https://yhetil.org/notmuch.git