From: Jameson Graef Rollins Date: Thu, 26 May 2011 01:01:15 +0000 (-0700) Subject: test: add notmuch_show_sanitize_all function that is a little more aggressive. X-Git-Tag: debian/0.6_254~98 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=18967ef7506566c3b7b5332893a3876da051ca5d 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. --- 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