[PATCH 06/11] test: add notmuch_show_sanitize_all function that is a little more aggressive.

2011-05-25 Thread Jameson Graef Rollins
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 |6 ++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 9e2e0b5..ae25635 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:X|' \
+   -e 's| id:[^ ]* | id:X |'
+}

 # End of notmuch helper functions

-- 
1.7.4.4



[PATCH 06/11] test: add notmuch_show_sanitize_all function that is a little more aggressive.

2011-05-25 Thread Jameson Graef Rollins
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 |6 ++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 9e2e0b5..ae25635 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:X|' \
+   -e 's| id:[^ ]* | id:X |'
+}
 
 # End of notmuch helper functions
 
-- 
1.7.4.4

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch