diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2011-05-25 18:01:15 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-05-27 16:18:57 -0700 |
commit | 18967ef7506566c3b7b5332893a3876da051ca5d (patch) | |
tree | 9f52f1a9732c57467780b19af9900fc20bc88eef /test | |
parent | b596fbbcd30c82a6487231f01ba1e4d68bd98275 (diff) |
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.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-lib.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index dc2972f2..078f0602 100755 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -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 |