Write oldmailfile after close