{"id":19648153,"url":"https://github.com/bestpractical/rt-extension-spamfilter","last_synced_at":"2026-02-27T14:42:30.342Z","repository":{"id":20349666,"uuid":"23624570","full_name":"bestpractical/rt-extension-spamfilter","owner":"bestpractical","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-21T13:46:53.000Z","size":91,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-04T15:55:47.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://metacpan.org/release/rt-extension-spamfilter","language":"Perl","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bestpractical.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-03T14:52:01.000Z","updated_at":"2024-05-30T19:33:15.000Z","dependencies_parsed_at":"2024-05-30T22:18:31.065Z","dependency_job_id":"280ec69a-f1a0-4070-bb46-760ace9febc2","html_url":"https://github.com/bestpractical/rt-extension-spamfilter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bestpractical/rt-extension-spamfilter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-spamfilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-spamfilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-spamfilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-spamfilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bestpractical","download_url":"https://codeload.github.com/bestpractical/rt-extension-spamfilter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-spamfilter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29900081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T14:30:36.354Z","status":"ssl_error","status_checked_at":"2026-02-27T14:30:01.989Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T14:47:18.480Z","updated_at":"2026-02-27T14:42:30.304Z","avatar_url":"https://github.com/bestpractical.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    RT-Extension-SpamFilter - Spam Filter\n\nDESCRIPTION\n    This is for public RT systems, where everyone can create tickets. Admins\n    can define a list of rules, and if an email comes from a non-existing\n    user and reached the score threshold(scored by the rules), it will be\n    marked as spam and no tickets will be created.\n\n    Admins can manually handle those spams from /Tools/SpamFilter/List.html\n\nRT VERSION\n    Works with RT 4.0, 4.2, 4.4 and 5.0.\n\nINSTALLATION\n    perl Makefile.PL\n    make\n    make install\n        May need root permissions\n\n    make initdb\n        Only run this the first time you install this module.\n\n        If you run this twice, you may end up with duplicate data in your\n        database.\n\n        If you are upgrading this module, check for upgrading instructions\n        in case changes need to be made to your database.\n\n    Patch RT earlier than 5.0.5\n            patch -d /opt/rt5 -p1 \u003c patches/0001-Pass-action-info-to-GetCurrentUser-for-email-interfa.patch\n\n    Set up spam filter rules (see \"CONFIGURATION\" for details.)\n    Clear your mason cache\n            rm -rf /opt/rt5/var/mason_data/obj\n\n    Restart your webserver\n\nCONFIGURATION\n    Edit your /opt/rt5/etc/RT_SiteConfig.pm; a sample configuration is shown\n    below:\n\n        Plugin('RT::Extension::SpamFilter');\n        Set(@MailPlugins, 'SpamFilter', 'Auth::MailFrom');\n        Set($SpamFilterThreshold, 30);\n        Set(\n            @SpamFilters,\n            {\n                Field =\u003e 'Subject',\n                Regex =\u003e qr/urgent reply/i,\n                Score =\u003e 20,\n            },\n            {\n                Field =\u003e 'X-Gm-Spam',\n                Regex =\u003e qr/1/,\n                Score =\u003e 30, # Trust spam header and flag as spam\n            },\n            {\n                Field =\u003e 'Body',\n                Regex =\u003e qr/download the attachment/i,\n                Score =\u003e 10\n            },\n            {\n                Field =\u003e 'To',\n                Regex =\u003e qr/\\@example\\.com/i,\n                Score =\u003e 30,\n                Operator =\u003e 'no-match'\n            }\n        );\n\n        Set($SpamListRowsPerPage, 50);\n\n  @SpamFilters\n    The @SpamFilters array is an array of hashes. Each hash must contain the\n    following keys:\n\n    Field\n        Either 'Body' or the name of an email header.\n\n    Regex\n        A regular expression to apply to the email header named by Field (or\n        the email body if Field is 'Body').\n\n    Score\n        A number indicating how many points to add to the spam score if the\n        rule matches.\n\n    Operator\n        This optional key defaults to 'match', meaning it will evaluate\n        whether Regex matches Field. You can set this to 'no-match' to\n        reverse the evaluatation and apply the Score if the Regex does not\n        match Field. You can use this mode to add spam points for email\n        headers that should match an expected value, like your domain in the\n        To header, but doesn't. This can happen if a spammer sets the To\n        envelope to your domain, but the To header in the email is something\n        else.\n\n    You can use the configuration above to check for provided spam headers\n    as shown in the example above. However, any score provided as a value in\n    a header currently isn't used. The configuration will detect the\n    presence of the spam header and then add the score you configure.\n\n  $SpamFilterThreshold\n    The $SpamFilterThreshold is the score above which an incoming message is\n    considered to be spam and placed in the spam list.\n\n  $SpamListRowsPerPage\n    The $SpamListRowsPerPage is an optional configuration to change the\n    number of rows to display per page in the spam list. Default is 50.\n\nAUTHOR\n    Best Practical Solutions, LLC \u003cmodules@bestpractical.com\u003e\n\nBUGS\n    All bugs should be reported via email to\n\n        L\u003cbug-RT-Extension-SpamFilter@rt.cpan.org|mailto:bug-RT-Extension-SpamFilter@rt.cpan.org\u003e\n\n    or via the web at\n\n        L\u003crt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-SpamFilter\u003e.\n\nLICENSE AND COPYRIGHT\n    This software is Copyright (c) 2014 Best Practical Solutions, LLC.\n\n    This is free software, licensed under:\n\n      The GNU General Public License, Version 2, June 1991\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Frt-extension-spamfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbestpractical%2Frt-extension-spamfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Frt-extension-spamfilter/lists"}