save mailboxes to file