MSGExtract function

read content from input file,
according rule extract key imformation to a CVS file.