script to download and save all email messages and attachments to file