inbucket icon indicating copy to clipboard operation
inbucket copied to clipboard

API mailboxes and emails count

Open cyd01 opened this issue 2 years ago • 1 comments

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 avatar Dec 04 '23 17:12 cyd01

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.

jhillyerd avatar Dec 05 '23 03:12 jhillyerd