Offer to automatically rebuild the corresponding corrupt folders.db when "database disk image is malformed"
In recent times I have run into the issue where Evolution shows an error infobar saying "database disk image is malformed" for various folders (labels) of my regular GMail IMAP account. I was stumped by that infobar error message and thought it would maybe fix itself with time as Evolution refreshes its mail cache, but it persisted, so I had to look it up and find your reply on an old mailing list thread.
Like that person asking the question in 2015, trying to repair the database was of no use, only nuking it worked.
It would be much nicer for user experience if, when displaying that error infobar, the infobar:
- gave actionable advice (or at least mentioned the specific file that is problematic, and that deleting it will force Evolution to rebuild that account's whole mail cache database and that it will probably take a long time)
- provided an infobar action button to conveniently "Rebuild database", that cancels current sync operations, deletes the corrupt folders.db and rebuilds it for me
...instead of having to have this specific knowledge and then needing to go dig into the hidden cache folder and guessing which of the dozen account folders to manually delete.
Note: this was tested only on Evolution 3.38.4 on Fedora 33, but I wouldn't be surprised if this is relevant to the latest version as well, considering how this issue has been around for many years.