diff options
author | Carl Worth <cworth@cworth.org> | 2010-06-04 12:36:13 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-06-04 12:36:13 -0700 |
commit | 552c61e2693a1be100d17a803b2e33209d09ae94 (patch) | |
tree | 39c55ddb5e0f27d055a9aed9e772aa21faf76e86 /test/notmuch-test | |
parent | 98845fdbb2a4acaa0036f8e2e998e726b18e6b13 (diff) |
test suite: Add support for custom references header in generated messages.
In the same style as several other existing headers.
Diffstat (limited to 'test/notmuch-test')
-rwxr-xr-x | test/notmuch-test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/notmuch-test b/test/notmuch-test index ca41408..cddaafb 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -66,13 +66,14 @@ increment_mtime () # '[cc]="Some User <user@example.com>"' # [reply-to]=some-address # [in-reply-to]=<message-id> +# [references]=<message-id> # '[header]=full header line, including keyword' # # Additional values for email headers. If these are not provided # then the relevant headers will simply not appear in the # message. # -# '[id]=<message-id>' +# '[id]=message-id' # # Controls the message-id of the created message. gen_msg_cnt=0 @@ -141,6 +142,11 @@ ${additional_headers}" ${additional_headers}" fi + if [ ! -z "${template[references]}" ]; then + additional_headers="References: ${template[references]} +${additional_headers}" + fi + cat <<EOF >$gen_msg_filename From: ${template[from]} |