Skip to content

Parse MimeMessage without reading all attachments #345

@drencrom

Description

@drencrom

I´d like to know of there is some way to parse a MimeMessage (like EmailConverter.mimeMessageToEmail) that does not read the contents of all attachments. I have a use case where it is useful to have the Email object but the emails have large attachments that take some time to download from the IMAP server and are not needed.
I suppose it is possible to create an Email object that reads the attachment contents only when they are requested, for example by executing the getAttachments function.
If this does not exist maybe I will develop it myself unless you think that is not possible for some reason I'm not seeing right now.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions