{
    "content": [
        {
            "type": "text",
            "text": "# Mail::Message::TransferEnc::Base64 (perldoc)\n\n## NAME\n\nMail::Message::TransferEnc::Base64 - encode/decode base64 message bodies\n\n## SYNOPSIS\n\nmy Mail::Message $msg = ...;\nmy $decoded = $msg->decoded;\nmy $encoded = $msg->encode(transfer => 'base64');\n\n## DESCRIPTION\n\nEncode or decode message bodies with base64. The e-mail protocol and user agents can not handle\nbinary data. Therefore, binary data -but even sometimes non-binary data- is encoded into ASCII,\nthis is transportable.\n\n## Sections\n\n- **NAME**\n- **INHERITANCE**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS** (5 subsections)\n- **DIAGNOSTICS**\n- **SEE ALSO**\n- **LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Mail::Message::TransferEnc::Base64",
        "section": "",
        "mode": "perldoc",
        "summary": "Mail::Message::TransferEnc::Base64 - encode/decode base64 message bodies",
        "synopsis": "my Mail::Message $msg = ...;\nmy $decoded = $msg->decoded;\nmy $encoded = $msg->encode(transfer => 'base64');",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "INHERITANCE",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "Constructors",
                        "lines": 5
                    },
                    {
                        "name": "The Encoder",
                        "lines": 11
                    },
                    {
                        "name": "Encoding",
                        "lines": 14
                    },
                    {
                        "name": "Error handling",
                        "lines": 42
                    },
                    {
                        "name": "Cleanup",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Mail::Message::TransferEnc::Base64 - encode/decode base64 message bodies\n",
                "subsections": []
            },
            "INHERITANCE": {
                "content": "Mail::Message::TransferEnc::Base64\nis a Mail::Message::TransferEnc\nis a Mail::Reporter\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my Mail::Message $msg = ...;\nmy $decoded = $msg->decoded;\nmy $encoded = $msg->encode(transfer => 'base64');\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Encode or decode message bodies with base64. The e-mail protocol and user agents can not handle\nbinary data. Therefore, binary data -but even sometimes non-binary data- is encoded into ASCII,\nthis is transportable.\n\nBase64 re-groups the bits of bytes, and maps them on characters. The data contains bytes of 8\nbits (an *octet*). These are repacked into groups of 6 bits, pointing in an array of characters\ncontaining \"[A-Za-z0-9+/]\". This way, three data bytes become 4 base64 bytes. The encoded data\nwill be trailed by '=' characters to align on four bytes.\n\nExtends \"DESCRIPTION\" in Mail::Message::TransferEnc.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "Extends \"METHODS\" in Mail::Message::TransferEnc.\n",
                "subsections": [
                    {
                        "name": "Constructors",
                        "content": "Extends \"Constructors\" in Mail::Message::TransferEnc.\n\nMail::Message::TransferEnc::Base64->new(%options)\nInherited, see \"Constructors\" in Mail::Reporter\n"
                    },
                    {
                        "name": "The Encoder",
                        "content": "Extends \"The Encoder\" in Mail::Message::TransferEnc.\n\nMail::Message::TransferEnc::Base64->addTransferEncoder($type, $class)\nInherited, see \"The Encoder\" in Mail::Message::TransferEnc\n\n$obj->create($type, %options)\nInherited, see \"The Encoder\" in Mail::Message::TransferEnc\n\n$obj->name()\nInherited, see \"The Encoder\" in Mail::Message::TransferEnc\n"
                    },
                    {
                        "name": "Encoding",
                        "content": "Extends \"Encoding\" in Mail::Message::TransferEnc.\n\n$obj->check($body, %options)\nInherited, see \"Encoding\" in Mail::Message::TransferEnc\n\n$obj->decode($body, %options)\n-Option     --Defined in                --Default\nresulttype  Mail::Message::TransferEnc  <type of source body>\n\nresulttype => CLASS\n\n$obj->encode($body, %options)\nInherited, see \"Encoding\" in Mail::Message::TransferEnc\n"
                    },
                    {
                        "name": "Error handling",
                        "content": "Extends \"Error handling\" in Mail::Message::TransferEnc.\n\n$obj->AUTOLOAD()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->addReport($object)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )\nMail::Message::TransferEnc::Base64->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level,\n$callback] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->errors()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->log( [$level, [$strings]] )\nMail::Message::TransferEnc::Base64->log( [$level, [$strings]] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logPriority($level)\nMail::Message::TransferEnc::Base64->logPriority($level)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logSettings()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->notImplemented()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->report( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->reportAll( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->trace( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->warnings()\nInherited, see \"Error handling\" in Mail::Reporter\n"
                    },
                    {
                        "name": "Cleanup",
                        "content": "Extends \"Cleanup\" in Mail::Message::TransferEnc.\n\n$obj->DESTROY()\nInherited, see \"Cleanup\" in Mail::Reporter\n"
                    }
                ]
            },
            "DIAGNOSTICS": {
                "content": "Warning: Base64 line length not padded on 4.\nWhile decoding base64 the data in a message body, a string was found which was not padded\ninto a multiple of four bytes. This is illegal, and therefore this data is ignored.\n\nError: Decoder for transfer encoding $type does not work: $@\nCompiling the required transfer encoding resulted in errors, which means that the decoder\ncan not be used.\n\nWarning: No decoder for transfer encoding $type.\nA decoder for the specified type of transfer encoding is not implemented.\n\nError: Package $package does not implement $method.\nFatal error: the specific package (or one of its superclasses) does not implement this\nmethod where it should. This message means that some other related classes do implement this\nmethod however the class at hand does not. Probably you should investigate this and probably\ninform the author of the package.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "This module is part of Mail-Message distribution version 3.012, built on February 11, 2022.\nWebsite: http://perl.overmeer.net/CPAN/\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself. See http://dev.perl.org/licenses/\n",
                "subsections": []
            }
        }
    }
}