test save mail to file