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

API mailboxes and emails count #454

Open
cyd01 opened this issue Dec 4, 2023 · 1 comment
Open

API mailboxes and emails count #454

cyd01 opened this issue Dec 4, 2023 · 1 comment

Comments

@cyd01
Copy link
Contributor

cyd01 commented Dec 4, 2023

Please consider to add a new API command to retrieve the list of the current mailboxes, and for each, the number of emails.

The list could be under route GET /api/v1/mailbox/

Thanks

@cyd01 cyd01 changed the title API mailboxes count API mailboxes and emails count Dec 4, 2023
@jhillyerd
Copy link
Collaborator

jhillyerd commented Dec 5, 2023

Unfortunately, this isn't feasible with the current storage design -- Inbucket has to walk the file tree to discover what mailboxes exist. It could take seconds or even minutes depending on how many mailboxes there are and how fast the disk is.

At some point I'd like to add a embedded database or key/value store to enable this and searching, so it may be possible in the long term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants