I did not find an answer but found an acceptable fallback. I created a virgin discourse 2.7.9 instance moved the mail to be imported, as instructed when importing mailboxes. It effectively imports the mail and by editing the script/import_scripts/mbox/support/indexer.rb
file I was able to add a few puts statements here and there to get more information about the problem.