#! /bin/bash

for file in /home/jsd/Maildir/cur/* ; do
  echo "**** $file"
  <$file ./ward -err >/tmp/testall.eml && diff $file /tmp/testall.eml || exit 1
done
echo OK