Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add headers to email attachments #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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