DEV Community

Cover image for ThirdStats — Beautifully Visualized Email Account Stats
Andreas
Andreas

Posted on • Updated on

ThirdStats — Beautifully Visualized Email Account Stats

In the first post of this series I told you the background story why I built a tool that's able to show some email analytics in the Mozilla Thunderbird email client. After using this tool for a year now, I've determined three major issues:

❌ It depends on the mail storage engine
❌ The stats creation process is a little too complex
❌ The stats page cannot be accessed directly from Thunderbird

What I did

To address all of these issues, I decided to create a native Thunderbird add-on with the same functionality. Well, I never built a Thunderbird add-on before, so I took a look into the Thunderbird documentation. It turned out, that thanks to Thunderbirds WebExtension APIs, I was able to reuse nearly all of my Vue.js code - nice! I spent a weekend of porting my code and creating ThirdStats:

GitHub logo devmount / third-stats

Thunderbird add-on turning your emails into beautifully visualized email account stats. Built with Vue.js and Chart.js

ThirdStats is a Thunderbird add-on for beautifully visualized email account stats.
Download from Thunderbird Add-ons repository. Contributions, corrections & requests can be made on GitHub.
Created by Andreas Müller.

release last commit CodeQL analysis license contributions welcome

Get started

Install ThirdStats from the Thunderbird Add-ons repository:

  1. Start Thunderbird, open the main menu and click on Add-ons
  2. Search for ThirdStats
  3. Click Add to Thunderbird and give necessary permissions
  4. Open the ThirdStats Popup in the upper right corner of the main toolbar and enjoy your email account stats

To properly recognize emails as sent, make sure to configure all email adresses you write from as Thunderbird identities for your email account. You can do so under account settings > select your account > click button more identities at the bottom and add or modify identities as you need.

Also keep in mind, that the processing of large mailboxes can take a lot of time.

Features

  • Check key…

thirdstats screenshot

A screenshot showing ThirdStats on the Thunderbird default dark theme on Windows

What you can do

This is actually the first Thunderbird 78+ add-on providing visual statistics of email accounts (at least I wasn't able to find something similar in the repository)! So if you are interested in contributing to the large community of Thunderbird users - you are very welcome to do so! I've prepared the GitHub repository so it's ripe and ready for harvest in this year's Hacktoberfest.

Add translations

If you're new to contributing to OSS and you want to get to know the process of creating Pull Requests first, you can just add a translation of the add-on in your native language. This is as simple as adding a single JSON file. I explained everything in the Contribution Guidelines and prepared some example issues.

Improve the UI

If you're already familiar with Vue.js app development and you have some experience in building user interfaces, you can help improving ThirdStats UI. I've prepared some example issues for this topic too (e.g. #8, #9, #10). Please discuss your ideas or possible changes in the corresponding issue first before investing a lot of time for a pull request that won't get merged for some reason.

Add charts

And for those of you who are looking for the real challenge, I prepared some feature requests (#11, #12) to implement additional charts and analytics to make this add-on even more complete. What numbers are you interested in about your mail account?

Again: Please discuss your ideas in a corresponding issue first before investing a lot of time for a pull request that won't get merged for some reason.

Wrap it up

So I made my first steps contributing to the (in my opinion) best open source email client out there by creating an add-on to expand its functionality. Do you use Thunderbird? Would you use this add-on? What is missing in your opinion? Let's discuss here in the comments or directly on GitHub!

Links


Edited: 30th of September 2020 (added repository links)
Published: 29th of September 2020

Top comments (5)

Collapse
 
shaunakde profile image
Shaunak De

After about a decade of using Thunderbird, I recently switched to Outlook. The one in developer preview now is really good on macos.

This post reminded me of how amazing thunderbird is. Just wish the calander support for gmail was better out of the box.

Collapse
 
devmount profile image
Andreas

Hi Shaunak, glad you liked this post. Which feature are you missing in Thunderbirds calendar system? To be honest: Thunderbirds calendar is one of the main reasons I stick to Thunderbird, because I can sync calendars on my on servers with WebCal and TbSync. Even Outlook doesn't have that feature... Don't have any experience with gmail calendars though...

Collapse
 
shaunakde profile image
Shaunak De • Edited

Hey Andreas,
Sadly for work I have to sync my gmail calander and a Microsoft Exchange account, and the only way to do this currently is with the Lightning addon, which sadly isn't as robust with syncing as my colleagues would like :) -- especially on a VPN. Sometimes I miss last minute meetings. I'm sure there will be a setting to improve the polling rate etc. but I switched to Outlook recently and I've been fairly happy. But your post does inspire me to switch back - maybe this weekend!

Thread Thread
 
devmount profile image
Andreas

I see, I'm sorry that it didn't work for your setup. Calendar support is now integrated in the Thunderbird core (no add-on necessary anymore), maybe it's worth to give it another try with the current Thunderbird 78?

Thread Thread
 
shaunakde profile image
Shaunak De

Oh wow. I didn't know that. Will do!