Mail::SpamAssassin::Plugin::ReplaceTags - tags for SpamAssassin rules
The plugin allows rules to contain regular expression tags to be used in regular expression rules. The tags make it much easier to maintain complicated rules.
Warning: This plugin replies on data structures specific to this version of SpamAssasin; it is not guaranteed to work with other versions of SpamAssassin.
loadplugin Mail::SpamAssassin::Plugin::ReplaceTags
replace_start < replace_end >
replace_tag A [a@] replace_tag G [gk] replace_tag I [il|!1y\?\xcc\xcd\xce\xcf\xec\xed\xee\xef] replace_tag R [r3] replace_tag V (?:[vu]|\\\/) replace_tag SP [\s~_-]
body VIAGRA_OBFU /(?!viagra)<V>+<SP>*<I>+<SP>*<A>+<SP>*<G>+<SP>*<R>+<SP>*<A>+/i describe VIAGRA_OBFU Attempt to obfuscate "viagra"
replace_rules VIAGRA_OBFU
Note: It is not recommended to put quantifiers inside the tag, it's better to put them inside the rule itself for greater flexibility.
String(s)
which indicate the start and end of a tag inside a rule. Only tags
enclosed by the start and end strings are found and replaced.