Mail::SpamAssassin::Plugin::Shortcircuit man page on YellowDog

Man page or keyword search:  
man Server   18644 pages
apropos Keyword Search (all sections)
Output format
YellowDog logo
[printable version]

Mail::SpamAssassin::PlUser:ContribuMail::SpamAssassin::Plugin::Shortcircuit(3)

NAME
       Mail::SpamAssassin::Plugin::Shortcircuit - short-circuit evaluation for
       certain rules

SYNOPSIS
	 loadplugin	Mail::SpamAssassin::Plugin::Shortcircuit

	 report Content analysis details:   (_SCORE_ points, _REQD_ required, s/c _SCTYPE_)

	 add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ shortcircuit=_SCTYPE_ autolearn=_AUTOLEARN_ version=_VERSION_"

DESCRIPTION
       This plugin implements simple, test-based shortcircuiting.  Shortcir‐
       cuiting a test will force all other pending rules to be skipped, if
       that test is hit.

       Recomended usage is to use "priority" to set rules with strong S/O val‐
       ues (ie.	 1.0) to be run first, and make instant spam or ham classifi‐
       cation based on that.

CONFIGURATION SETTINGS
       The following configuration settings are used to control shortcircuit‐
       ing:

shortcircuit SYMBOLIC_TEST_NAME {ham⎪spam⎪on⎪off}
Shortcircuiting a test will force all other pending rules to be skipped, if
that test is hit.

Recomended usage is to use "priority" to set rules with strong S/O values (ie.
1.0) to be run first, and make instant spam or ham classification based on
that.

To override a test that uses shortcircuiting, you can set the classification
type to "off".

on  Shortcircuits the rest of the tests, but does not make a strict classifi‐
    cation of spam or ham.  Rather, it uses the default score for the rule
    being shortcircuited.  This would allow you, for example, to define a rule
    such as

      body TEST /test/
      describe TEST test rule that scores barely over spam threshold
      score TEST 5.5
      priority TEST -100
      shortcircuit TEST on

    The result of a message hitting the above rule would be a final score of
    5.5, as opposed to 100 (default) if it were classified as spam.

off Disables shortcircuiting on said rule.

spam
    Shortcircuit the rule using a set of defaults; override the default score
    of this rule with the score from "shortcircuit_spam_score", set the "noau‐
    tolearn" tflag, and set priority to "-100".	 In other words, equivalent
    to:

      shortcircuit TEST on
      priority TEST -100
      score TEST 100
      tflags TEST noautolearn

ham Shortcircuit the rule using a set of defaults; override the default score
    of this rule with the score from "shortcircuit_ham_score", set the "noau‐
    tolearn" and "nice" tflags, and set priority to "-100".   In other words,
    equivalent to:

      shortcircuit TEST on
      priority TEST -100
      score TEST -100
      tflags TEST noautolearn nice

shortcircuit_spam_score n.nn (default: 100)
    When shortcircuit is used on a rule, and the shortcircuit classification
    type is set to "spam", this value should be applied in place of the
    default score for that rule.

shortcircuit_ham_score n.nn (default: -100)
    When shortcircuit is used on a rule, and the shortcircuit classification
    type is set to "ham", this value should be applied in place of the default
    score for that rule.

TAGS
       The following tags are added to the set available for use in reports,
       headers etc.:

	 _SC_		   shortcircuit status (classification and rule name)
	 _SCRULE_	   rulename that caused the shortcircuit
	 _SCTYPE_	   shortcircuit classification ("spam", "ham", "default", "none")

SEE ALSO
       "http://issues.apache.org/SpamAssassin/show_bug.cgi?id=3109"

perl v5.8.8			  2Mail::SpamAssassin::Plugin::Shortcircuit(3)
[top]

List of man pages available for YellowDog

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net