def METHOD_NAME(
    message, subject, from_addr, to_addrs, cc_addrs, additional_headers, priority, logger
):
    """Sets headers on Mimetext message"""
    message["Subject"] = subject
    message["From"] = from_addr
    message["To"] = ", ".join(to_addrs)
    if cc_addrs:
        # NOTE filter out unenhanced cc_addrs added by self.get_mimetext_message
        cc_addrs = [cc for cc in cc_addrs if is_email(cc)]
        message["Cc"] = ", ".join(cc_addrs)
    if additional_headers:
        for k, v in additional_headers.items():
            message[k] = v
    if priority and priority_header_is_valid(priority, logger):
        priority = PRIORITIES[str(priority)].copy()
        for key in priority:
            message[key] = priority[key]
    return message