test: notmuch_drop_mail_headers() style update
[notmuch.git] / test / test-lib.sh
index 09ee815d80605c31de722976a3236835638553ef..350246492d8c2dbd0e6faf16c9dc26d19a77223c 100644 (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 ()