mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
test: add notmuch_show_sanitize_all function that is a little more aggressive.
The old notmuch_show_sanitize function only scrubed part of the filename. This one scrubs the full filename, as well as the message id.
This commit is contained in:
parent
b596fbbcd3
commit
18967ef750
1 changed files with 6 additions and 0 deletions
|
@ -502,6 +502,12 @@ notmuch_show_sanitize ()
|
|||
{
|
||||
sed -e "$NOTMUCH_SHOW_FILENAME_SQUELCH"
|
||||
}
|
||||
notmuch_show_sanitize_all ()
|
||||
{
|
||||
sed \
|
||||
-e 's| filename:.*| filename:XXXXX|' \
|
||||
-e 's| id:[^ ]* | id:XXXXX |'
|
||||
}
|
||||
|
||||
# End of notmuch helper functions
|
||||
|
||||
|
|
Loading…
Reference in a new issue