You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2007/07/03 07:24:49 UTC

[Spamassassin Wiki] Trivial Update of "PluginWritingTips" by PerryLorier

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by PerryLorier:
http://wiki.apache.org/spamassassin/PluginWritingTips

The comment on the change is:
Add link to the bugzilla entry

------------------------------------------------------------------------------
  
  The rule description is accessible with {{{ $pms->{conf}->{descriptions}->{EXAMPLE_RULE_NAME} }}}. It is usually set by {{{ describe EXAMPLE_RULE_NAME }}} in the rules file but can also be changed at runtime.  (actually, changing this at runtime is not recommended and may not be supported in future versions; I'm not sure it even works in SA 3.2.0. if you want to do something similar, it would be better to open an enhancement request on our bugzilla so we can come up with a proper API. --jm)
  
- Setting {{{ $pms->{conf}->{scoreset}->[$set]->{"EXAMPLE_RULE_NAME"} }}} lets the dynamic score appear in the template tag _TESTSSCORES_, which might be used for the X-Spam-Status line. (The for loop is necessary to set all 4 values, for their explanation see [http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html Mail::SpamAssassin::Conf] item {{{score SYMBOLIC_TEST_NAME n.nn}}} )  (again, changing the {scoreset} values is not recommended and probably will not work in future versions!  please talk about this via the bugzilla. --jm)
+ Setting {{{ $pms->{conf}->{scoreset}->[$set]->{"EXAMPLE_RULE_NAME"} }}} lets the dynamic score appear in the template tag _TESTSSCORES_, which might be used for the X-Spam-Status line. (The for loop is necessary to set all 4 values, for their explanation see [http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html Mail::SpamAssassin::Conf] item {{{score SYMBOLIC_TEST_NAME n.nn}}} )  (again, changing the {scoreset} values is not recommended and probably will not work in future versions!  please talk about this via the bugzilla. --jm (see http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5463))