"apt-cache search archive mail|sort" brings up, among other things: archivemail - archive and compress your old email archmbox - a simple email archiver written in perl
These utilities are OK. But I think the point is, it's difficult to restore and read them back in thundbird.