Skip to content

Conversation

bprimc
Copy link

@bprimc bprimc commented May 4, 2023

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:
    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

Signed-off-by: Blaz Primc <[email protected]>
@bprimc bprimc force-pushed the add_attachment_headers branch from b501479 to 8bb1e60 Compare May 4, 2023 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant