Skip to content

How not to fetch attachments with body #429

@shoaib30

Description

@shoaib30

Hi All,

I am new to IMAP and this may not be a imapclient specific question. I was wondering if there is a way to skip fetching attachments?

I know passing 'ENVELOPE' (client.fetch(uid, ['ENVELOPE'])) gives a summary, what I need is along with ENVELOPE is the text/plain and text/html (if present)

I am trying to fetch my entire mailbox to perform some analytics, it runs into a couple of gigabytes if I fetch along with attachments, and they are of no use to me.

any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions