How to mass merge topics into parents for a Yahoo Groups import?

Lol, yeah, not a bad suggestion @tobiaseigen, but there’s no way in creation I’m going to be able to find the time to take this arduous step with so many tens of thousands of messages. The mboxes alone are over 500 MB. I’m going to try my luck at just fixing things over time from within Discourse since I can have other mods also help this way. I’m hoping either we find some other suggestions as per my last question or we’ll work on implementing a plugin if there are no other options.