This perl function expects its first arguement to be the name of the text file of email headers it will process.
perl ProcessEmails.pl headerFile.txt perl ProcessEmails.pl headerFile.txt > outfile