{
    "content": [
        {
            "type": "text",
            "text": "# Mail::Message::TransferEnc::QuotedPrint (perldoc)\n\n**Summary:** Mail::Message::TransferEnc::QuotedPrint - handle quoted-printable message bodies\n\n**Synopsis:** my Mail::Message $msg = ...;\nmy $decoded = $msg->decoded;\nmy $encoded = $msg->encode(transfer => 'quoted-printable');\n\n## Section Outline\n\n- **NAME** (3 lines)\n- **INHERITANCE** (4 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (9 lines)\n- **METHODS** (2 lines) — 5 subsections\n  - Constructors (5 lines)\n  - The Encoder (12 lines)\n  - Encoding (32 lines)\n  - Error handling (43 lines)\n  - Cleanup (5 lines)\n- **DIAGNOSTICS** (15 lines)\n- **SEE ALSO** (3 lines)\n- **LICENSE** (6 lines)\n\n## Full Content\n\n### NAME\n\nMail::Message::TransferEnc::QuotedPrint - handle quoted-printable\nmessage bodies\n\n### INHERITANCE\n\nMail::Message::TransferEnc::QuotedPrint\nis a Mail::Message::TransferEnc\nis a Mail::Reporter\n\n### SYNOPSIS\n\nmy Mail::Message $msg = ...;\nmy $decoded = $msg->decoded;\nmy $encoded = $msg->encode(transfer => 'quoted-printable');\n\n### DESCRIPTION\n\nEncode and decode message bodies for quoted-printable transfer encoding.\nThe Quoted-Printable encoding is intended to represent data that largely\nconsists of bytes that correspond to printable characters in the ASCII\ncharacter set. Non-printable characters (as defined by English\nAmericans) are represented by a triplet consisting of the character \"=\"\nfollowed by two hexadecimal digits.\n\nExtends \"DESCRIPTION\" in Mail::Message::TransferEnc.\n\n### METHODS\n\nExtends \"METHODS\" in Mail::Message::TransferEnc.\n\n#### Constructors\n\nExtends \"Constructors\" in Mail::Message::TransferEnc.\n\nMail::Message::TransferEnc::QuotedPrint->new(%options)\nInherited, see \"Constructors\" in Mail::Reporter\n\n#### The Encoder\n\nExtends \"The Encoder\" in Mail::Message::TransferEnc.\n\nMail::Message::TransferEnc::QuotedPrint->addTransferEncoder($type,\n$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\n#### Encoding\n\nExtends \"Encoding\" in Mail::Message::TransferEnc.\n\n$obj->check($body, %options)\nInherited, see \"Encoding\" in Mail::Message::TransferEnc\n\n$obj->decode($body, %options)\nDecoding is tricky, and not without loss of information. Lines will\nstay separate lines, although they might have been joined before the\nencoding split them up. Characters which are not printable will be\nreplaced by their octal value, and carriage returns ('=0D') at end\nof line are removed.\n\n-Option     --Defined in                --Default\nresulttype  Mail::Message::TransferEnc  <type of source body>\n\nresulttype => CLASS\n\n$obj->encode($body, %options)\nEncoding is to quoted-printable is a careful process: All characters\noutside the normal printing range, and including '=' are encoded.\nThey are translated into a '=' followed by a two digit hex of the\nascii value of the character. The same treatment is for white-spaces\nat the end of a line.\n\nThe lines which are constructed which must be 76 characters max, not\nbroken on encoded characters.\n\n-Option     --Defined in                --Default\nresulttype  Mail::Message::TransferEnc  <type of source body>\n\nresulttype => CLASS\n\n#### Error handling\n\nExtends \"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,\n$callback] )\nMail::Message::TransferEnc::QuotedPrint->defaultTrace(\n[$level]|[$loglevel, $tracelevel]|[$level, $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::QuotedPrint->log( [$level, [$strings]] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logPriority($level)\nMail::Message::TransferEnc::QuotedPrint->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\n#### Cleanup\n\nExtends \"Cleanup\" in Mail::Message::TransferEnc.\n\n$obj->DESTROY()\nInherited, see \"Cleanup\" in Mail::Reporter\n\n### DIAGNOSTICS\n\nError: Decoder for transfer encoding $type does not work: $@\nCompiling the required transfer encoding resulted in errors, which\nmeans that the decoder can not be used.\n\nWarning: No decoder for transfer encoding $type.\nA decoder for the specified type of transfer encoding is not\nimplemented.\n\nError: Package $package does not implement $method.\nFatal error: the specific package (or one of its superclasses) does\nnot implement this method where it should. This message means that\nsome other related classes do implement this method however the\nclass at hand does not. Probably you should investigate this and\nprobably inform the author of the package.\n\n### SEE ALSO\n\nThis module is part of Mail-Message distribution version 3.012, built on\nFebruary 11, 2022. Website: http://perl.overmeer.net/CPAN/\n\n### LICENSE\n\nCopyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. For other\ncontributors see ChangeLog.\n\nThis program is free software; you can redistribute it and/or modify it\nunder the same terms as Perl itself. See http://dev.perl.org/licenses/\n\n"
        }
    ],
    "structuredContent": {
        "command": "Mail::Message::TransferEnc::QuotedPrint",
        "section": "",
        "mode": "perldoc",
        "summary": "Mail::Message::TransferEnc::QuotedPrint - handle quoted-printable message bodies",
        "synopsis": "my Mail::Message $msg = ...;\nmy $decoded = $msg->decoded;\nmy $encoded = $msg->encode(transfer => 'quoted-printable');",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "INHERITANCE",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "Constructors",
                        "lines": 5
                    },
                    {
                        "name": "The Encoder",
                        "lines": 12
                    },
                    {
                        "name": "Encoding",
                        "lines": 32
                    },
                    {
                        "name": "Error handling",
                        "lines": 43
                    },
                    {
                        "name": "Cleanup",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}