{
    "mode": "perldoc",
    "parameter": "Mail::Message::Convert::TextAutoformat",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Mail%3A%3AMessage%3A%3AConvert%3A%3ATextAutoformat/json",
    "generated": "2026-06-13T12:24:30Z",
    "synopsis": "use Mail::Message::Convert::TextAutoformat;\nmy $af = Mail::Message::Convert::TextAutoformat->new;\nmy $beautifiedbody = $af->autoformatBody($body);",
    "sections": {
        "NAME": {
            "content": "Mail::Message::Convert::TextAutoformat - Reformat plain text messages\n",
            "subsections": []
        },
        "INHERITANCE": {
            "content": "Mail::Message::Convert::TextAutoformat\nis a Mail::Message::Convert\nis a Mail::Reporter\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Mail::Message::Convert::TextAutoformat;\nmy $af = Mail::Message::Convert::TextAutoformat->new;\n\nmy $beautifiedbody = $af->autoformatBody($body);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Play trics with plain text, for instance bodies with type \"text/plain\" using Damian Conway's\nText::Autoformat.\n\nExtends \"DESCRIPTION\" in Mail::Message::Convert.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Extends \"METHODS\" in Mail::Message::Convert.\n",
            "subsections": [
                {
                    "name": "Constructors",
                    "content": "Extends \"Constructors\" in Mail::Message::Convert.\n\nMail::Message::Convert::TextAutoformat->new(%options)\n-Option --Defined in            --Default\nfields   Mail::Message::Convert  <see description>\nlog      Mail::Reporter          'WARNINGS'\noptions                          { (all, 1) }\ntrace    Mail::Reporter          'WARNINGS'\n\nfields => NAMES|ARRAY-OF-NAMES|REGEXS\nlog => LEVEL\noptions => HASH-REF\nOptions to pass to Text::Autoformat, when its \"autoformat\" method is called.\n\ntrace => LEVEL\n"
                },
                {
                    "name": "Converting",
                    "content": "Extends \"Converting\" in Mail::Message::Convert.\n\n$obj->autoformatBody($body)\nFormats a single message body (a Mail::Message::Body object) into a new body object using\nText::Autoformat. If the Text::Autoformat is not installed, \"undef\" is returned.\n\n$obj->selectedFields($head)\nInherited, see \"Converting\" in Mail::Message::Convert\n"
                },
                {
                    "name": "Error handling",
                    "content": "Extends \"Error handling\" in Mail::Message::Convert.\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::Convert::TextAutoformat->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::Convert::TextAutoformat->log( [$level, [$strings]] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logPriority($level)\nMail::Message::Convert::TextAutoformat->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::Convert.\n\n$obj->DESTROY()\nInherited, see \"Cleanup\" in Mail::Reporter\n"
                }
            ]
        },
        "DIAGNOSTICS": {
            "content": "Error: 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": []
        }
    },
    "summary": "Mail::Message::Convert::TextAutoformat - Reformat plain text messages",
    "flags": [],
    "examples": [],
    "see_also": []
}