CompactOnDelete
CompactOnDelete is a Mozilla Thunderbird extension that schedules IMAP folder compaction to happen when Thunderbird loses its window focus after messages are removed from an IMAP folder. Only those folders with removals are compacted. This is meant to automatically make deleted messages disappear from Outlook and Outlook Web Access on an Exchange server when they are deleted in Thunderbird. Other IMAP servers don't need this extension, and the use of this extension limits your ability to undo as soon as Thunderbird loses its window focus, since compacting a folder clears the undo/redo history.
- Download extension (right-click and select "Save Link As...")
- Subversion repository
A future enhancement could involve detecting which IMAP servers are Exchange and compacting only their folders on Thunderbird's focus loss. Presently, this extension will compact any IMAP folder that gets messages deleted or moved away from it.