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

Fetch more than one message at a time #16

Open
mrhyde opened this issue Mar 18, 2018 · 2 comments
Open

Fetch more than one message at a time #16

mrhyde opened this issue Mar 18, 2018 · 2 comments

Comments

@mrhyde
Copy link

mrhyde commented Mar 18, 2018

I have attempted to download a couple of thousands of emails I started wondering about speed limitations of imapbox. After a brief investigation, I have discovered that we are fetching only one message at the time.

@polo2ro did you tried to download emails in bulk? I wonder if that solution could be faster.

See the documentation:

The message_set options to commands below is a string specifying one or more messages to be acted upon. It may be a simple message number ('1'), a range of message numbers ('2:4'), or a group of non-contiguous ranges separated by commas ('1:3,6:9'). A range can contain an asterisk to indicate an infinite upper bound ('3:*').

@polo2ro
Copy link
Owner

polo2ro commented Mar 18, 2018

Hi, no I did not try this feature yet, i don't know if this can be faster

@axljung
Copy link

axljung commented Sep 29, 2024

Bulk fetch of emails will not speed up the whole process, because most of the time is consumed by converting to PDF and saving to the disk.
And a bulk fetch of emails could break the limits of IMAP servers configured to not deliver too much data in one response.

I'm thinking about implementing a threaded work process doing the fetch in one thread and the processing of them to another one.

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

No branches or pull requests

3 participants