]> git.notmuchmail.org Git - notmuch/commitdiff
test: add notmuch_show_sanitize_all function that is a little more aggressive.
authorJameson Graef Rollins <jrollins@finestructure.net>
Thu, 26 May 2011 01:01:15 +0000 (18:01 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 27 May 2011 23:18:57 +0000 (16:18 -0700)
The old notmuch_show_sanitize function only scrubed part of the
filename.  This one scrubs the full filename, as well as the message
id.

test/test-lib.sh

index dc2972f256a00456b0649911b56719586f553ddd..078f0602ad72792fb5fe3d6f7cdc378bb25e83c4 100755 (executable)
@@ -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