You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2017/07/04 10:41:57 UTC

[Bug 7369] Unescaped left brace in regex is deprecated

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7369

James Lee <li...@xdrv.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lista@xdrv.co.uk

--- Comment #6 from James Lee <li...@xdrv.co.uk> ---
(In reply to chorny from comment #3)

> Tested /a{,2}/ on perl 5.14.0. It does not work as /a{0,2}/. But it is same
> as /a\{,2\}/.

"does not work" is surely defined by the comment above the failed regex:

  # in case the last line was huge, trim it back to around 200 chars

and "{,2}" does not work to trim the line in earlier version of perl either.

To trim the line to 200 chars "s/^(.{0,200}).*$/$1/gs" should be correct.



Any reason why something so basic has been left for 8 month?  Is spamassassin
unmaintained?

Unescaped left brace in regex is deprecated here (and will be fatal in Perl
5.30), passed through in regex; marked by <-- HERE in m/^(.{ <-- HERE
,200}).*$/ at /opt/xxxx/lib/perl5/xxxx/Mail/SpamAssassin/PerMsgStatus.pm line
921.

Note: and will be **fatal** in Perl 5.30

-- 
You are receiving this mail because:
You are the assignee for the bug.