I upgraded Ubuntu, and my Thunderbird has lost all its mail accounts. (I had one profile, but multiple mail accounts within it.) Some searches reveal that the new Snap version of Thunderbird stores its settings in a different location. I could perhaps copy the old directory to there to see whether it would work, but on looking at the current directory, there are ImapMail
directories for a whole bunch of old mail accounts which no longer exist, and I think perhaps it would be neater to start from scratch. Can I easily extract just the actual mail accounts (account names and login details) from the old place, and put them in the new directory so that it syncs the IMAP emails again?
Incidentally, this appears to be a bug in the upgrade process. Old mail accounts should not be lost in an Ubuntu upgrade. Should I report that somewhere, or is it already known?
I found a python script which can extract account information (including passwords) from a Thunderbird profile directory, and used that to recreate only the live accounts in the new Thunderbird.
To quote mivk at Super User,
This gives me a new, clean Thunderbird setup, without the old dead IMAP files. (It did not retrieve the RSS feed I had in Thunderbird, but there was just the one and it was easy for me to set it up again.)
This doesn’t explain what went wrong in the first place, of course, but the outcome tidies things up.