]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: add notmuch_show_sanitize_all function that is a little more aggressive.
[notmuch] / 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