I have many EML files (plain text, RFC 5322, MIME) that I need to edit to replace headers (From, To, Cc, Subject, etc.) that have character encoding damaged text in them. Most of the headers with corrupted text in them are in the MIME encoded-word format and are base64 encoded. Can I use Email::Simple and Email::MIME to edit these files? Or should I not bother with these email modules and just parse the headers myself using regular expression patterns? (I can use MIME::Base64 to decode the encoded-word strings.)
These EML files are from the same source and are quite uniform.