On 2024-05-21 at 11:00:57 UTC-0400 (Tue, 21 May 2024 17:00:57 +0200)
Vincent Lefevre <vinc...@vinc17.net>
is rumored to have said:
While testing a rule with SpamAssassin 4.0.0 under Debian/stable
(I wasn't aware of allow_user_rules yet, but this is not the issue
I'm reported):
2024-05-21T16:42:42.792136+02:00 joooj spamd[219339]: config: not
parsing, 'allow_user_rules' is 0: header LOCAL_TO_LORIA ToCc =~
/loria\\.fr/i
2024-05-21T16:42:42.793753+02:00 joooj spamd[219339]: config: failed
to parse line in /srv/d_joooj/home/vinc17/.spamassassin/user_prefs
(line 192): header LOCAL_TO_LORIA ToCc =~ /loria\\.fr/i
while I just had /loria\.fr/i (with a single backslash) in my
user_prefs config file.
Is there a reason to have a double backslash in the log messages
or is this a bug?
It is intentional to assure that log messages (which may include strings
from tainted sources) have all common meta-characters escaped.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo@toad.social and many *@billmail.scconsult.com
addresses)
Not Currently Available For Hire