consolidate to_mailbase, to_mailbase_textual, and validate into a single to_mailbase method