1 2 3 4 5 6 7
#! /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