You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2025/07/28 06:18:42 UTC
svn commit: r1927502 - spamassassin/trunk/rulesrc/sandbox/gbechis
Author: gbechis
Date: Mon Jul 28 06:18:42 2025
New Revision: 1927502
Log:
fix if ReplaceTags is not loaded
spotted by jhardin@
Modified:
spamassassin/trunk/rulesrc/sandbox/gbechis/20_btc.cf
Modified: spamassassin/trunk/rulesrc/sandbox/gbechis/20_btc.cf
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/gbechis/20_btc.cf Mon Jul 28 04:20:03 2025 (r1927501)
+++ spamassassin/trunk/rulesrc/sandbox/gbechis/20_btc.cf Mon Jul 28 06:18:42 2025 (r1927502)
@@ -47,8 +47,12 @@ score GB_BITCOIN_NH 3.0 # limi
if (version >= 3.004003)
ifplugin Mail::SpamAssassin::Plugin::HashBL
if can(Mail::SpamAssassin::Plugin::HashBL::has_hashbl_bodyre_replace)
- replace_rules GB_HASHBL_BTC
- body GB_HASHBL_BTC eval:check_hashbl_bodyre('bl.btcblack.it', 'raw/max=10/shuffle/replace', '\b(?<!=)([13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc<N1>[acdefghjklmnpqrstuvwxyz23456789<N0>]{30,62})\b')
+ ifplugin Mail::SpamAssassin::Plugin::ReplaceTags
+ replace_rules GB_HASHBL_BTC
+ body GB_HASHBL_BTC eval:check_hashbl_bodyre('bl.btcblack.it', 'raw/max=10/shuffle/replace', '\b(?<!=)([13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc<N1>[acdefghjklmnpqrstuvwxyz23456789<N0>]{30,62})\b')
+ else
+ body GB_HASHBL_BTC eval:check_hashbl_bodyre('bl.btcblack.it', 'raw/max=10/shuffle', '\b(?<!=)([13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[acdefghjklmnpqrstuvwxyz234567890]{30,62})\b')
+ endif
else
body GB_HASHBL_BTC eval:check_hashbl_bodyre('bl.btcblack.it', 'raw/max=10/shuffle', '\b(?<!=)([13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[acdefghjklmnpqrstuvwxyz234567890]{30,62})\b')
endif