test suite: Add support for custom references header in generated messages.
authorCarl Worth <cworth@cworth.org>
Fri, 4 Jun 2010 19:36:13 +0000 (12:36 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 4 Jun 2010 19:36:13 +0000 (12:36 -0700)
In the same style as several other existing headers.

test/notmuch-test

index ca41408955979c0f10ad8bd45562b7f6be22f439..cddaafb867792319ac6345f8c8e2a6eb9e7894ad 100755 (executable)
@@ -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]}