Razor2-Client-Agent
view release on metacpan or search on metacpan
lib/Razor2/String.pm view on Meta::CPAN
$mimepart .= $$mailref;
}
else {
$mimepart .= "\n" . $$mailref;
}
print "split_mime: returning total_len=" . length($mimepart) . "; hdrs=" . $hdrlen . ", body=" . length($$mailref) . "\n" if $debug;
return ( \$mimepart );
}
#
# Now we split mailref into hdr and body
# check hdr for nested mime (boundary)
#
my $orig_hdr = $hdr;
$hdr =~ s/\n\s+//sg; # merge multi-line headers
# nuke everything but X-Razor2 and Content-* headers
my $trimmed_hdr = "";
foreach ( split '\n', $hdr ) {
/^Content-/i and $trimmed_hdr .= "$_\n";
/^X-Razor2/i and $trimmed_hdr .= "$_\n";
( run in 0.543 second using v1.01-cache-2.11-cpan-5511b514fd6 )