

def make(self):
    'build into msg_root'
    headers = {
        'Subject': strip(self.subject),
        'From': self.sender,
        'To': ', '.join(self.recipients),
        'Date': email.utils.formatdate(),
        'Reply-To': (self.reply_to if self.reply_to else None),
        'CC': (', '.join(self.cc) if self.cc else None),
        'X-Frappe-Site': get_url(),
    }
    for (key, val) in hook.iteritems():
        self.set_header(key, val)
    for hook in frappe.get_hooks('make_email_body_message'):
        frappe.get_attr(hook)(self)

dataset/ETHPy150Open frappe/frappe/frappe/email/email_body.py EMail.make/VarMisuse@107/146 `headers`->`hook`