| Email-MIME documentation | Contained in the Email-MIME distribution. |
Email::MIME::Creator - obsolete do-nothing library
You don't need to use this module for anything.
This module is maintained by the Perl Email Project.
Do not send bug reports to: Casey West, <casey@geeknest.com>.
Copyright (c) 2004 Casey West. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Email-MIME documentation | Contained in the Email-MIME distribution. |
package Email::MIME::Creator; use strict; use vars qw[$VERSION]; $VERSION = '1.908'; use base q[Email::Simple::Creator]; use Email::MIME; use Encode (); sub _construct_part { my ($class, $body) = @_; my $is_binary = $body =~ /[\x00\x80-\xFF]/; my $content_type = $is_binary ? 'application/x-binary' : 'text/plain'; Email::MIME->create( attributes => { content_type => $content_type, encoding => ($is_binary ? 'base64' : ''), # be safe }, body => $body, ); } 1; __END__