PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` #!/usr/bin/perl -w =head1 NAME mime_longlines - generate a test message with long lines =head1 SYNOPSIS Usage: mime_longlines [-s] Options: -s Stringify message first, and print the *string* to STDOUT. =head1 DESCRIPTION Assemble and print (to the standard output) a multipart message with 5 attachments, for the purpose of "eyeballing" how well the encoders are working. Each attachments holds the same data -- some 8-bit text, and a long line consisting of 1000 "a"s followed by a few "b"s) -- but each has a different encoding (the "Content-transfer-encoding" field will tell you which is which). All of the encodings (except for the first one, "binary") should break the long line before the b's. =head1 AUTHOR Eryq, eryq@zeegee.com =cut use strict; use MIME::Lite; use Getopt::Std; ### Set up a long message: my $DATA = <'me@myhost.com', To =>'you@yourhost.com', Cc =>'some@other.com, some@more.com', Subject =>'The Magnificent Five (encodings, that is)', Type =>'multipart/mixed'; ### Add parts: foreach my $enc (qw(binary 8bit 7bit quoted-printable base64)) { $msg->attach(Type => 'TEXT', Data => $DATA, Encoding => $enc); } ### Print: if ($opts{'s'}) { print $msg->stringify } else { $msg->print(\*STDOUT) } 1; } exit (&main ? 0 : -1); 1; __END__