use the same approach for mbox and maildir testing