name: TypePad AntiSpam
id: TypePadAntispam
key: TypePadAntiSpam
description: |
    <__trans phrase='TypePad AntiSpam is a free service from Six Apart that helps protect your blog from comment and TrackBack spam. The TypePad AntiSpam plugin will send every comment or TrackBack submitted to your blog to the service for evaluation, and Movable Type will filter items if TypePad AntiSpam determines it is spam. If you discover that TypePad AntiSpam incorrectly classifies an item, simply change its classification by marking it as "Spam" or "Not Spam" from the Manage Comments screen, and TypePad AntiSpam will learn from your actions. Over time the service will improve based on reports from its users, so take care when marking items as "Spam" or "Not Spam."' />
author_name: Six Apart Ltd.
author_link: http://www.sixapart.com/
version: 1.01

system_config_template: system.tmpl
blog_config_template: config.tmpl
l10n_class: TypePadAntiSpam::L10N

callbacks:
    MT::Comment::pre_save: $TypePadAntiSpam::TypePadAntiSpam::pre_save_obj
    MT::TBPing::pre_save: $TypePadAntiSpam::TypePadAntiSpam::pre_save_obj
    handle_ham: $TypePadAntiSpam::TypePadAntiSpam::handle_not_junk
    handle_spam: $TypePadAntiSpam::TypePadAntiSpam::handle_junk
    MT::App::CMS::template_param.cfg_plugin: $TypePadAntiSpam::TypePadAntiSpam::template_param_cfg_plugin
    MT::PluginData::pre_save: $TypePadAntiSpam::TypePadAntiSpam::plugin_data_pre_save

junk_filters:
    TypePadAntiSpam:
        label: "TypePad AntiSpam"
        code: $TypePadAntiSpam::TypePadAntiSpam::typepadantispam_score

tags:
    function:
        TypePadAntiSpamCounter: $TypePadAntiSpam::TypePadAntiSpam::_hdlr_tpas_counter

widgets:
    typepadantispam:
        condition: $TypePadAntiSpam::TypePadAntiSpam::has_api_key
        handler: $TypePadAntiSpam::TypePadAntiSpam::stats_widget
        label: "TypePad AntiSpam"
        order: 2.1
        set: sidebar
        singular: 1
        template: stats_widget.tmpl

settings:
    api_key:
        Scope: system
    weight:
        Default: 1
        Scope: blog
    service_host:
        Default: api.antispam.typepad.com
        Scope: system
