Extracts email messages stored in text files and writes out XML versions with metadata.