--- a/tests/mail/mail.sh
+++ b/tests/mail/mail.sh
@@ -5,10 +5,14 @@
initvariables $0
-recollq Outmail_uniqueTerm > $mystdout 2> $mystderr
-recollq '"St Pierre en Chartreuse"' >> $mystdout 2>> $mystderr
-recollq HtmlAttachment_uniqueTerm >> $mystdout 2>> $mystderr
-recollq '"Dear Corporate Administrator"' >> $mystdout 2>> $mystderr
+recollq Outmail_uniqueTerm 2> $mystderr |
+ egrep -v '^Recoll query: ' > $mystdout
+recollq '"St Pierre en Chartreuse"' 2>> $mystderr |
+ egrep -v '^Recoll query: ' >> $mystdout
+recollq HtmlAttachment_uniqueTerm 2>> $mystderr |
+ egrep -v '^Recoll query: ' >> $mystdout
+recollq '"Dear Corporate Administrator"' 2>> $mystderr |
+ egrep -v '^Recoll query: ' >> $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1