projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b596fbb
)
test: add notmuch_show_sanitize_all function that is a little more aggressive.
author
Jameson Graef Rollins
<jrollins@finestructure.net>
Thu, 26 May 2011 01:01:15 +0000
(18:01 -0700)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/test/test-lib.sh
b/test/test-lib.sh
index dc2972f256a00456b0649911b56719586f553ddd..078f0602ad72792fb5fe3d6f7cdc378bb25e83c4 100755
(executable)
--- 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