Either manually or as suggested use OLE to first export the whole mailbox as a text file (mailbox only, not contacts etc). Then process the text file to split it up into individual files. If you try to use OLE to do the whole job, then you'll need to programmatically select each email in outlook...which will probably prove quite difficult
the hardest line to type correctly is: stty erase ^H