Skip to content

FETCH RFC822.SIZE #378

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

Closed
didi1357 opened this issue Feb 22, 2023 · 2 comments
Closed

FETCH RFC822.SIZE #378

didi1357 opened this issue Feb 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@didi1357
Copy link
Contributor

didi1357 commented Feb 22, 2023

Is your feature request related to a problem? Please describe.
It would be handy to have the size of a message calculated by the IMAP server and available without having to download the whole mail.

Most IMAP servers implement
FETCH NNN RFC822.SIZE
where NNN is the message number/uid shown in this stackoverflow article.

I think this is the way to go for getting this information.

Describe the solution you'd like
To retrieve this information, we can ask for it using the IMAP command directly or parse the result from imap_fetch_overview() depending on which protocol implementation is used.

Describe alternatives you've considered
Some dirty hack with fetching the whole message and calculating it on my own. But this doesn't scale.

Additional context
Relates to Issue #278
Pull request

@Webklex
Copy link
Owner

Webklex commented Mar 7, 2023

Hi @didi1357 ,
thanks again for your pr. Live Mailbox testing is now supported as well - thanks for giving me the final push :)

@Webklex Webklex closed this as completed Mar 7, 2023
@didi1357
Copy link
Contributor Author

didi1357 commented Mar 8, 2023

Wow, that was fast. Congratulations, and thanks for the collaboration 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants