The NYT published a very well-reported case (two cases, actually) of Google doing this more than two years ago. This is not a hypothetical -- this is already happening.
A possibility of loosing access to a 20 years old Google account is quite disturbing. I know it's possible to setup a sync of Google drive to a local NAS, I wonder if the same can be done with Gmail archives.
Then there's a problem of loosing access to all linked accounts on other services. What can be done about those, switching them to Proton mail.preemptively? Life without SSO is annoying.
When my account was closed by an ISP, Thunderbird (unexpectedly for me) mirrored the lack of access to the IMAP folders and deleted all my local mail. Fortunately this was a temporary issue that I was able to recover from.
In short, don't rely on TB to retain IMAP data, (like Dropbox) it is not a backup and IME will sync data losses, deleting local data if it is no longer accessible on the server.
>When my account was closed by an ISP, Thunderbird (unexpectedly for me) mirrored the lack of access to the IMAP folders and deleted all my local mail. Fortunately this was a temporary issue that I was able to recover from.
This is absolutely ridiculous of Thunderbird.
That said:
1. As you said, like Dropbox, it's a local mirror, not a backup. Someone gaining access to your email and mass-deleting everything would delete your local copy too. A an actual backup of Thunderbird mail files would accomplish a backup.
2. Did your ISP somehow allow Thunderbird to log into the mailbox and gave it empty content? Or did they delete content before killing IMAP sessions? If so, it's outright malicious. Otherwise, Thunderbird shouldn't have deleted anything.
3. Having an always-on desktop box with a mail client that gets all email once a week is a lazy way to decrease the chances of being affected by something like that. Having a script that copies mailbox data into another folder (named according to date) is, well, an actual backup.