MailBase: make headers work more like Python's email.message.Message whilst remaining compatible with previously written Salmon apps