Extracts email messages from text files and writes them into XML records with fielded metadata.