added writing newlines to mailbox file