Thunderbird has experienced a remarkable revival since 2022. After years of stagnation, the Mozilla Foundation is once again actively investing in its development. The Supernova initiative (Thunderbird 115+) brought fundamental modernizations such as Rust integration for performance-critical components, a modernized UI based on Web Components, and native Exchange support via the EWS/Microsoft Graph API.
For users who use Thunderbird to manage large IMAP mailboxes with many messages and a deep folder hierarchy, immediate availability (offline synchronization) and efficient storage are important. By default, Thunderbird can experience synchronization delays, and the mbox format is known to be prone to bloat, as deleted emails are often only marked for deletion and not physically removed.
Thunderbird offers powerful client-side email management options with its JavaScript API. Thunderbird is based on the Mozilla platform and uses XPCOM (Cross Platform Component Object Model) for its internal architecture. The JavaScript API enables direct access to mail services via the MailServices-Interface. This architecture differs fundamentally from web APIs and requires specific domain knowledge.
Thunderbird saves emails locally in mbox format, although deleted messages are initially only marked. Without regular compaction, these files continually grow, which leads to performance degradation and the "ghost email" problem: messages remain in the file structure but are no longer visible. The combination of IMAP synchronization and mbox maintenance can effectively prevent disk space problems and performance degradation.
The following script allows you to perform a "sweep" through all configured accounts and folders every few minutes. For each folder, it forces an offline update (downloading new emails for IMAP) and triggers a compaction process (physically removing deleted emails from the mbox file). This ensures that the local Thunderbird instance is a perfect, streamlined reflection of the server data.
76e66bbe83e88080a46f215744332e81
There are two main methods to run this script. The first is the Thunderbird error console (Extras > Entwickler-Werkzeuge > Fehlerkonsole or Strg+Umschalt+J). The code can be inserted and executed directly there. Alternatively, the extension can be used for persistent use userChromeJS can be used, which allows any JavaScript files to be loaded when Thunderbird starts, thus offering maximum flexibility for automation.
Some of Thunderbird's default settings are designed for convenience and would interfere with our script. The following settings should therefore be made in the Thunderbird configuration (about:config) can be adjusted to optimize automation and ensure smooth, aggressive synchronization and compaction. The values below are deliberately chosen to be aggressive and should fit the respective load profile.
76e66bbe83e88080a46f215744332e81
Microsoft has announced that Outlook Classic (Win32) will be deprecated in favor of the new Outlook for Windows. Outlook Classic will remain supported "for some" scenarios until at least 2029, but Microsoft recommends migrating much sooner. Some reports cite April 2026 as the target date for a widespread transition, with continued support until 2029. This decision has raised significant concerns in enterprise environments.
Criticisms include the web-based architecture with limited offline functionality, the lack of COM add-in support, the loss of PST file support, reduced VBA macro functionality that eliminates decades-old automation, performance degradation with large mailboxes, and data protection concerns due to mandatory cloud sync. This development makes evaluating alternatives a strategic necessity - Thunderbird is definitely worth a look.