smarter and safer mailer attribute handling