{
    "content": [
        {
            "type": "text",
            "text": "# Mail::Message::Wrapper::SpamAssassin (perldoc)\n\n## NAME\n\nMail::Message::Wrapper::SpamAssassin - Connect a Mail::Message with Mail::SpamAssassin\n\n## SYNOPSIS\n\n# WARNING: requires OLD SpamAssassion 2.x, not the new 3.x\n# See Mail::Box::Search::SpamAssassin for the preferred interface\n# However, it is possible to do:\nmy $msg    = ...;   # some Mail::Message object\nmy $sa     = Mail::Message::Wrapper::SpamAssassin->new($msg);\nmy $spam   = Mail::SpamAssassin->new;\nmy $status = $spam->check($sa);\n$msg->label(spam => 1) if $status->isspam;\n$status->rewritemail;  # Adds spam lines to header\n\n## DESCRIPTION\n\nWARNING: This module only works with the old version of SpamAssassin: version 2.x. The newer 3.x\nreleases have changed the way that messages are kept. Please contribute improved code.\n\n## Sections\n\n- **NAME**\n- **INHERITANCE**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SEE ALSO**\n- **LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Mail::Message::Wrapper::SpamAssassin",
        "section": "",
        "mode": "perldoc",
        "summary": "Mail::Message::Wrapper::SpamAssassin - Connect a Mail::Message with Mail::SpamAssassin",
        "synopsis": "# WARNING: requires OLD SpamAssassion 2.x, not the new 3.x\n# See Mail::Box::Search::SpamAssassin for the preferred interface\n# However, it is possible to do:\nmy $msg    = ...;   # some Mail::Message object\nmy $sa     = Mail::Message::Wrapper::SpamAssassin->new($msg);\nmy $spam   = Mail::SpamAssassin->new;\nmy $status = $spam->check($sa);\n$msg->label(spam => 1) if $status->isspam;\n$status->rewritemail;  # Adds spam lines to header",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "INHERITANCE",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Mail::Message::Wrapper::SpamAssassin - Connect a Mail::Message with Mail::SpamAssassin\n",
                "subsections": []
            },
            "INHERITANCE": {
                "content": "Mail::Message::Wrapper::SpamAssassin\nis a Mail::SpamAssassin::Message\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "# WARNING: requires OLD SpamAssassion 2.x, not the new 3.x\n# See Mail::Box::Search::SpamAssassin for the preferred interface\n# However, it is possible to do:\n\nmy $msg    = ...;   # some Mail::Message object\nmy $sa     = Mail::Message::Wrapper::SpamAssassin->new($msg);\nmy $spam   = Mail::SpamAssassin->new;\nmy $status = $spam->check($sa);\n\n$msg->label(spam => 1) if $status->isspam;\n$status->rewritemail;  # Adds spam lines to header\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "WARNING: This module only works with the old version of SpamAssassin: version 2.x. The newer 3.x\nreleases have changed the way that messages are kept. Please contribute improved code.\n\nThe \"Mail::Message::Wrapper::SpamAssassin\" class --sorry for the long package name-- is a\nwrapper around Mail::SpamAssassin::Message, which is an interface to the spam checking software\nof Mail::SpamAssassin.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "Mail::Message::Wrapper::SpamAssassin->new($message, %options)\nCreates a wrapper around the $message. The already present fields from a previous run of\nSpam::Assassin (or probably fake lines) are removed first.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "This module is part of Mail-Box distribution version 3.009, built on August 18, 2020. Website:\nhttp://perl.overmeer.net/CPAN/\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "Copyrights 2001-2020 by [Mark Overmeer]. 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": []
            }
        }
    }
}