Until something like this is built into Thunderbird, here is a stopgap that may help people reading this thread. Disclosure: I wrote it.MailMover is a free desktop program (Linux, Windows, macOS) that does part of what this idea and several comments ...