MIME::EncWords

MIME::EncWords is a Perl module created to deal with RFC-1522 encoded words (improved).
Download

MIME::EncWords Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Hatuka*nezumi - IKEDA Soji
  • Publisher web site:
  • http://search.cpan.org/~nezumi/MIME-Charset-0.044/Charset.pm

MIME::EncWords Tags


MIME::EncWords Description

MIME::EncWords is a Perl module created to deal with RFC-1522 encoded words (improved). MIME::EncWords is a Perl module created to deal with RFC-1522 encoded words (improved).SYNOPSISMIME::EncWords is aimed to be another implimentation of MIME::Words so that it will achive more exact conformance with MIME specifications. Additionally, it contains some improvements. Following synopsis and descriptions are inherited from its inspirer, with description of improvements and clarifications added.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::EncWords 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: AT 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");Fellow Americans, you probably won't know what the hell this module is for. Europeans, Russians, et al, you probably do.For example, here's a valid MIME header you might get: From: =?US-ASCII?Q?Keith_Moore?= < moore AT utk.edu > To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= < keld AT dkuug.dk > CC: =?ISO-8859-1?Q?Andr=E9_?= Pirard < PIRARD AT vm1.ulg.ac.be > Subject: =?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?= =?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?= =?US-ASCII?Q?.._cool!?=The fields basically decode to (sorry, I can only approximate the Latin characters with 7 bit sequences /o and 'e): From: Keith Moore < moore AT cs.utk.edu > To: Keld J/orn Simonsen < keld AT dkuug.dk > CC: Andr'e Pirard < PIRARD AT vm1.ulg.ac.be > Subject: If you can read this you understand the example... cool!Supplement: Fellow Americans, Europeans, you probably won't know what the hell this module is for. East Asians, et al, you probably do.For example, here's a valid MIME header you might get: Subject: =?EUC-KR?B?sNTAuLinKGxhemluZXNzKSwgwvzB9ri7seIoaW1w?= =?EUC-KR?B?YXRpZW5jZSksILGzuLgoaHVicmlzKQ==?=The fields basically decode to (sorry, I cannot approximate the non-Latin multibyte characters with any 7 bit sequences): Subject: ???(laziness), ????(impatience), ??(hubris) Requirements: · Perl


MIME::EncWords Related Software