in reply to Re: String Comparison Issue
in thread String Comparison Issue

Then, instead of printing the whole email body to the result file, extract the wanted headers and print those to the output.