Listen for mail and write it to a file.