mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
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:
parent
ec37900c5f
commit
7526538808
1 changed files with 4 additions and 4 deletions
|
@ -509,12 +509,12 @@ NOTMUCH_DUMP_TAGS ()
|
||||||
|
|
||||||
notmuch_drop_mail_headers ()
|
notmuch_drop_mail_headers ()
|
||||||
{
|
{
|
||||||
$NOTMUCH_PYTHON -c "
|
$NOTMUCH_PYTHON -c '
|
||||||
import email,sys
|
import email, sys
|
||||||
msg=email.message_from_file(sys.stdin)
|
msg = email.message_from_file(sys.stdin)
|
||||||
for hdr in sys.argv[1:]: del msg[hdr]
|
for hdr in sys.argv[1:]: del msg[hdr]
|
||||||
print(msg.as_string(False))
|
print(msg.as_string(False))
|
||||||
" $*
|
' "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
notmuch_search_sanitize ()
|
notmuch_search_sanitize ()
|
||||||
|
|
Loading…
Reference in a new issue