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

Get mailbox Size using pop3 #1623

Closed
usamasarfraz opened this issue Aug 15, 2023 · 4 comments
Closed

Get mailbox Size using pop3 #1623

usamasarfraz opened this issue Aug 15, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@usamasarfraz
Copy link

usamasarfraz commented Aug 15, 2023

How can we get mailbox size (in bytes) using mailkit pop3 just like we get using STAT command.
In logs we are getting mailbox size but in mailkit we didn't found any method or property to get this.


C: STAT
S: +OK 3376 5720744


@jstedfast jstedfast self-assigned this Aug 15, 2023
@jstedfast jstedfast added the enhancement New feature or request label Aug 15, 2023
@jstedfast
Copy link
Owner

Looks like Pop3Client caches the data but doesn't provide a property. I can add one.

@usamasarfraz
Copy link
Author

How long it will take to add this property ?

@jstedfast
Copy link
Owner

The biggest hurdle to adding this is deciding on the name to use for the property. It should be quick & easy to add because there is already a member variable that contains the value.

@usamasarfraz
Copy link
Author

The STAT command displays the number of messages currently in the mailbox and the size in bytes.
So you can name this property as size.

jstedfast added a commit that referenced this issue Aug 16, 2023
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