MIME::AltWordsMIME::AltWords Perl module can properly deal with RFC-1522 encoded words. | |
Download |
MIME::AltWords Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Pter Szab
- Publisher web site:
- http://search.cpan.org/~pts/MIME-AltWords-0.12/lib/MIME/AltWords.pm
MIME::AltWords Tags
MIME::AltWords Description
MIME::AltWords Perl module can properly deal with RFC-1522 encoded words. MIME::AltWords Perl module can properly deal with RFC-1522 encoded words.SYNOPSISThe Perl module MIME::AltWords is recommended for encoding and decoding MIME words (such as =?ISO-8859-2?Q?_=E1ll_e=E1r?=) found in e-mail message headers (mostly Subject, From and To).MIME::AltWords is similar to MIME::Words in MIME::Tools, but it provides an alternate implementation that follows the MIME specification more carefully, and it is actually compatible with existing mail software (tested with Mutt, Pine, JavaMail and OpenWebmail). MIME::AltWords extends the functionality of MIME::Words (version 5.420) by adding more functions and more options to existing functions. The original interface is changed in an upward-compatible way.Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. I'll wait.Ready? Ok... use MIME::AltWords qw(:all); ### Decode the string into another string, forgetting the charsets: $decoded = decode_mimewords( 'To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= ', ); ### Split string into array of decoded pairs: @decoded = decode_mimewords( 'To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= ', ); ### Encode a single unsafe word: $encoded = encode_mimeword("xABFranxE7oisxBB"); ### Encode a string, trying to find the unsafe words inside it: $encoded = encode_mimewords("Me and xABFranxE7oisxBB in town"); Requirements: · Perl
MIME::AltWords Related Software