mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
test-lib: Add dummy subject to force empty subject
At the moment, the test-lib fills in any missing headers. This makes it impossible to test our handling of empty subjects. This will allow us to use a special dummy subject -- `@FORCE_EMPTY` -- to force the subject to remain empty.
This commit is contained in:
parent
67e368ac7b
commit
c0c007dd7f
1 changed files with 2 additions and 0 deletions
|
@ -368,6 +368,8 @@ generate_message ()
|
||||||
else
|
else
|
||||||
template[subject]="Test message #${gen_msg_cnt}"
|
template[subject]="Test message #${gen_msg_cnt}"
|
||||||
fi
|
fi
|
||||||
|
elif [ "${template[subject]}" = "@FORCE_EMPTY" ]; then
|
||||||
|
template[subject]=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${template[date]}" ]; then
|
if [ -z "${template[date]}" ]; then
|
||||||
|
|
Loading…
Reference in a new issue