third-stats icon indicating copy to clipboard operation
third-stats copied to clipboard

Add metrics about attachments and email storage size

Open devmount opened this issue 4 years ago • 5 comments

Is your feature request related to a problem? Please describe. @drfedtke stated in #182, that it would be nice to have additional metrics about attachments and the storage size of emails.

Describe the solution you'd like There are several possibilities. Most obvious would be the total number of emails with attachments or the total size. Also possible is the average number of files attached or the average size of an attachment.

Describe alternatives you've considered In fact, every existing chart in ThirdStats is currently based on mail count, but it could also just be based on mail size. So in theory, there could be a switch on top where the user can toggle between showing stats based on mail counts or based on mail size.

Additional context Related: #182

Also a user story I received on that topic:

Since the "Most received from" refers to the "count" of emails,
I would like to see the total "size" of emails, by the top users.

Maybe the section could be called "Most space used by received from",
and at the bottom maybe 10MB, 20MB, 1GB, etc.

That would really help my manage the storage of my account.

devmount avatar Jan 13 '21 09:01 devmount

Thunderbirds WebExtension APIs currently don't provide a corresponding attribute to retrieve information about attachments, so for now this will be on hold. In the meantime I encourage you to discuss the proposed metrics about attachments.

devmount avatar Jan 13 '21 09:01 devmount

Thunderbirds WebExtension APIs currently don't provide a corresponding attribute to retrieve information about attachments

Correction: it doesn't exist in the message header, which ThirdStats only processes. It does exist in the messages body, but I avoid accessing that for privacy and performance reasons.

See this discussion thread.

devmount avatar Apr 27 '21 20:04 devmount

The size attribute is now implemented in messages headers since TB 90 https://webextension-api.thunderbird.net/en/latest/messages.html#messages-messageheader

devmount avatar Sep 12 '21 08:09 devmount

Is there any update? I just installed the night build, but it doesn't seem to show anything like that yet

graytape avatar Mar 29 '23 08:03 graytape

Not yet. Adding new metrics depends on some deeper UI changes to keep things clean and organized. Feel free to take part in the discussion: #376

devmount avatar Mar 29 '23 08:03 devmount