Private way to convert pst to mbox

One of the ways I’ve done this in the past is to set up a dovecot container, and then add IMAP account to outlook and copy all the email across. In that case I wanted it in Maildir format.