mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +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_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 ()
|
||||
|
|
Loading…
Reference in a new issue