--On December 14, 2018 at 4:09:08 PM -0500 Bill Cole <postfixlists-070...@billmail.scconsult.com> wrote:

On 14 Dec 2018, at 15:32, Bill Cole wrote:

On 14 Dec 2018, at 0:46, Paul Schmehl wrote:

I'm seeing this error in the logs:

warn: Unescaped left brace in regex is deprecated here (and will be
fata))

NOTE: that message should specify the source of the error. If it does
not, something in your logging plumbing is mangling error messages.

Also note: there is at least one 3rd-party ruleset (http://sa.zmi.at)
which appears to have had a typo ('.' where a ',' should have been) which
also resulted in this error message in a recent version. See
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7669 for a report of
this issue (which is not a bug in SA per se, as the rules with the typo
are an independent distribution.)

I did the following searches trying to locate this issue:

# grep -ro "\[,.\]" /usr/local/lib/perl5/site_perl/*
/usr/local/lib/perl5/site_perl/LWP/Authen/Digest.pm:[,;]
/usr/local/lib/perl5/site_perl/LWP/Authen/Digest.pm:[,;]
/usr/local/lib/perl5/site_perl/Mail/Header.pm:[,;]
/usr/local/lib/perl5/site_perl/Mail/SpamAssassin/ArchiveIterator.pm:[,.]

# grep -ro "{,.}" /usr/local/lib/perl5/site_perl/*
/usr/local/lib/perl5/site_perl/Text/Unidecode/x0f.pm:{, }
/usr/local/lib/perl5/site_perl/Text/Unidecode/x18.pm:{, }
{, }
/usr/local/lib/perl5/site_perl/Text/Unidecode/x20.pm:{,,}
/usr/local/lib/perl5/site_perl/Text/Unidecode/x30.pm:{, }
/usr/local/lib/perl5/site_perl/Text/Unidecode/x30.pm:{,,}
/usr/local/lib/perl5/site_perl/Text/Unidecode/x00.pm:{,,}
/usr/local/lib/perl5/site_perl/mach/5.26/opie.ph:{,;}

The same searches run on SA rules found one possible issue:

# grep -ro "\[,.\]" /usr/local/etc/mail/spamassassin/*
/usr/local/etc/mail/spamassassin/70_sare_specific.cf:[,s

I say possible because in my researching this issue I've seen both curly braces only and also both curly braces and square braces, so I'm not completely certain which (or if both) are a problem.

At any rate, I don't see any dependency on Text::Unicode, although I wouldn't be surprised if it's used by SA.

If square braces are included as well, then Mail::Header and ArchiveIterator.pm would likely be potential culprits for the error message.

If parenthetical braces are also implicated, then there is an additional potential problem:

# grep -ro "(,.)" /usr/local/lib/perl5/site_perl/*
/usr/local/lib/perl5/site_perl/mach/5.26/sys/lock.ph:(, )
/usr/local/lib/perl5/site_perl/mach/5.26/sys/lock.ph:(, )

At this point, I need an experienced programmer to decipher all this and let me know where the issue(s) might be.

Paul Schmehl
Independent Researcher

Reply via email to