Mail::SpamAssassin::Plugin::ReplaceTags(3pm) | User Contributed Perl Documentation | Mail::SpamAssassin::Plugin::ReplaceTags(3pm) |
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 relies on data structures specific to this version of SpamAssassin; 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.
2024-04-12 | perl v5.38.2 |