a connect-mail middleware that save mails to disk.