Repository navigation
Conversation
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.
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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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:
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.