logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Email::MIME::Encodings - A unified interface to MIME encoding and decoding

Authors

       •   Simon Cozens <simon@cpan.org>

       •   Casey West <casey@geeknest.com>

       •   Ricardo SIGNES <cpan@semiotic.systems>

Contributors

       •   David Steinbrunner <dsteinbrunner@pobox.com>

       •   Ricardo Signes <rjbs@semiotic.systems>

Description

       This module simply wraps "MIME::Base64" and "MIME::QuotedPrint" so that you can throw the contents of a
       "Content-Transfer-Encoding" header at some text and have the right thing happen.

       "MIME::Base64", "MIME::QuotedPrint", "Email::MIME".

Name

       Email::MIME::Encodings - A unified interface to MIME encoding and decoding

Perl Version

       This library should run on perls released even a long time ago.  It should work on any version of perl
       released in the last five years.

       Although it may work on older versions of perl, no guarantee is made that the minimum required version
       will not be increased.  The version may be increased for any reason, and there is no promise that patches
       will be accepted to lower the minimum required perl.

Synopsis

         use Email::MIME::Encodings;
         my $encoded = Email::MIME::Encodings::encode(base64 => $body);
         my $decoded = Email::MIME::Encodings::decode(base64 => $encoded);

       If a third argument is given, it is the encoding to which to fall back.  If no valid codec can be found
       (considering both the first and third arguments) then an exception is raised.

Version

       version 1.317

See Also