$OpenBSD$

Index: test/T340-maildir-sync.sh
--- test/T340-maildir-sync.sh.orig
+++ test/T340-maildir-sync.sh
@@ -150,7 +150,7 @@ mv $MAIL_DIR/cur/adding-replied-tag:2,RS $MAIL_DIR/cur
 mv $MAIL_DIR/cur/adding-s-flag:2,S $MAIL_DIR/cur/adding-s-flag:2,
 mv $MAIL_DIR/cur/adding-with-s-flag:2,S $MAIL_DIR/cur/adding-with-s-flag:2,RS
 mv $MAIL_DIR/cur/message-to-move-to-cur:2,S $MAIL_DIR/cur/message-to-move-to-cur:2,DS
-notmuch dump --output=dump.txt
+notmuch dump | zcat >dump.txt
 NOTMUCH_NEW >/dev/null
 notmuch restore --input=dump.txt
 output=$(ls $MAIL_DIR/cur)
