Wrap function within extended class of email.message.Message)