Skip to content

Folder sizes and largest emails for folders section - #529

Open
dabrain34 wants to merge 1 commit into
devmount:mainfrom
dabrain34:dab_folder_sizes
Open

dabrain34 wants to merge 1 commit into
devmount:mainfrom
dabrain34:dab_folder_sizes

Conversation

@dabrain34

@dabrain34 dabrain34 commented Nov 18, 2026 •

Copy link
Copy Markdown

Sum MessageHeader.size per account and folder path while analyzing messages, since no WebExtension API returns the size of a folder.

The folders section gets two new tabs:

  • Folder sizes: a collapsible account/folder tree, sizes include subfolders, each folder name shows the folder in a mail tab
  • Largest emails: the biggest messages with links to the email and to its folder, limited by the maxListCount option

Emails are opened by their Message-ID header, as message ids do not survive a restart. The folder hierarchy is read live from the accounts, so sizes of folders renamed or deleted since the last refresh are left out. Stats cached before this change show no sizes until they are refreshed.

Description of the Change

Sum MessageHeader.size per account and folder path while analyzing messages, since no WebExtension API returns the size of a folder.

The folders section gets two new tabs:

  • Folder sizes: a collapsible account/folder tree, sizes include subfolders, each folder name shows the folder in a mail tab
  • Largest emails: the biggest messages with links to the email and to its folder, limited by the maxListCount option

Emails are opened by their Message-ID header, as message ids do not survive a restart. The folder hierarchy is read live from the accounts, so sizes of folders renamed or deleted since the last refresh are left out. Stats cached before this change show no sizes until they are refreshed.

Benefits

Getting the folder size accross the email accounts in the statistics.

Applicable Issues

This pull request has been vibe coded as I was not having so much experience in this codebase but I was feeling that this feature could be interesting to the community. It has been reviewed attentively by me (human) in terms of features and basic code review. I might have let things passing in term of architecture or unit tests so let me by your review and I will change things according to your recommandations.

The translations have not been updated.

Sum MessageHeader.size per account and folder path while analyzing
messages, since no WebExtension API returns the size of a folder.

The folders section gets two new tabs:
- Folder sizes: a collapsible account/folder tree, sizes include
  subfolders, each folder name shows the folder in a mail tab
- Largest emails: the biggest messages with links to the email and
  to its folder, limited by the maxListCount option

Emails are opened by their Message-ID header, as message ids do not
survive a restart. The folder hierarchy is read live from the
accounts, so sizes of folders renamed or deleted since the last
refresh are left out. Stats cached before this change show no sizes
until they are refreshed.
@devmount

devmount commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

@dabrain34 First thank you for taking the time to contribute, that is awesome! For the future: Please don't just create a PR without discussing it first in a corresponding issue. There are always things that need to be taken into account and decided first. It would be shame to waste your time or tokens (note/task for me to update the contribution guidelines since this doesn't seem to be clear).

Having said that, this is a bigger change which might need to take some time to review. Since this contains changes to the UI, please always provide screenshots showing all relevant changes. Also please provide metrics on performance changes this PR introduces (how much longer does processing take with the added site information).

@devmount devmount changed the title ➕ Add folder sizes and largest emails to the folders section Folder sizes and largest emails for folders section Nov 20, 2026
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

Successfully merging this pull request may close these issues.

2 participants