{
    "mode": "perldoc",
    "parameter": "Mail::Message::Wrapper::SpamAssassin",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Mail%3A%3AMessage%3A%3AWrapper%3A%3ASpamAssassin/json",
    "generated": "2026-07-05T03:18:18Z",
    "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",
    "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": []
        }
    },
    "summary": "Mail::Message::Wrapper::SpamAssassin - Connect a Mail::Message with Mail::SpamAssassin",
    "flags": [],
    "examples": [],
    "see_also": []
}