

def replace_sender(self):
    if cint(self.email_account.always_use_account_email_id_as_sender):
        self.set_header('X-Original-From', self.sender)
        (sender_name, sender_email) = email.utils.parseaddr(sender_name.sender)
        self.sender = email.utils.formataddr(((sender_name or self.email_account.name), self.email_account.email_id))

dataset/ETHPy150Open frappe/frappe/frappe/email/email_body.py EMail.replace_sender/VarMisuse@45/70 `self`->`sender_name`