test: notmuch_drop_mail_headers() style update

Changed "" quotes to '' as we're not supposed to dynamically
alter python program (via shell $variable expansion).

Added space to python program to match general python style.

Replaced $* with 'idiomatic' "$@" to serve as better example.
This commit is contained in:
Tomi Ollila 2017-09-03 23:24:55 +03:00 committed by David Bremner
parent ec37900c5f
commit 7526538808

View file

@ -509,12 +509,12 @@ NOTMUCH_DUMP_TAGS ()
notmuch_drop_mail_headers ()
{
$NOTMUCH_PYTHON -c "
import email,sys
msg=email.message_from_file(sys.stdin)
$NOTMUCH_PYTHON -c '
import email, sys
msg = email.message_from_file(sys.stdin)
for hdr in sys.argv[1:]: del msg[hdr]
print(msg.as_string(False))
" $*
' "$@"
}
notmuch_search_sanitize ()