MIME::Tools::MailFieldTokenizerForRFC2045 - as it says
The MIME::Tools::* modules are for MIME::Tools internal consumption only. The modules and their interfaces may change radically from version to version.
$mft = new MIME::Tools::MailFieldTokenizerForRFC2045; @tokens = $mft->tokenize($contents_of_mail_header_field); $listed = $mft->list_tokens(@tokens); $pretty = $mft->join_tokens(@tokens); $canon = $mft->canonicalize($contents_of_mail_header_field);
Methods for parsing and formatting mail header field tokens, as per RFC-2045. This is a modification of the RFC-822 syntax and logic.
To install MIME::Head, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MIME::Head
CPAN shell
perl -MCPAN -e shell install MIME::Head
For more information on module installation, please visit the detailed CPAN module installation guide.