Open bprimc opened 1 year ago
Example usage:
def find_attachment_by_cid(cid: str) -> Attachment | None: for att in message.attachments: for header in att.headers: if header['name'] == 'Content-ID' and header['value'] == f'<{cid}>': return att
Example usage: