mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
test suite: Add support for custom references header in generated messages.
In the same style as several other existing headers.
This commit is contained in:
parent
98845fdbb2
commit
552c61e269
1 changed files with 7 additions and 1 deletions
|
@ -66,13 +66,14 @@ increment_mtime ()
|
||||||
# '[cc]="Some User <user@example.com>"'
|
# '[cc]="Some User <user@example.com>"'
|
||||||
# [reply-to]=some-address
|
# [reply-to]=some-address
|
||||||
# [in-reply-to]=<message-id>
|
# [in-reply-to]=<message-id>
|
||||||
|
# [references]=<message-id>
|
||||||
# '[header]=full header line, including keyword'
|
# '[header]=full header line, including keyword'
|
||||||
#
|
#
|
||||||
# Additional values for email headers. If these are not provided
|
# Additional values for email headers. If these are not provided
|
||||||
# then the relevant headers will simply not appear in the
|
# then the relevant headers will simply not appear in the
|
||||||
# message.
|
# message.
|
||||||
#
|
#
|
||||||
# '[id]=<message-id>'
|
# '[id]=message-id'
|
||||||
#
|
#
|
||||||
# Controls the message-id of the created message.
|
# Controls the message-id of the created message.
|
||||||
gen_msg_cnt=0
|
gen_msg_cnt=0
|
||||||
|
@ -141,6 +142,11 @@ ${additional_headers}"
|
||||||
${additional_headers}"
|
${additional_headers}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "${template[references]}" ]; then
|
||||||
|
additional_headers="References: ${template[references]}
|
||||||
|
${additional_headers}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
cat <<EOF >$gen_msg_filename
|
cat <<EOF >$gen_msg_filename
|
||||||
From: ${template[from]}
|
From: ${template[from]}
|
||||||
|
|
Loading…
Reference in a new issue