http://bugzilla.spamassassin.org/show_bug.cgi?id=4570
------- Additional Comments From [EMAIL PROTECTED] 2005-09-08 15:09 -------
> Can someone see how many lines the regexp can handle
> on a FreeBSD system that has the lower limit?
Almost 4 million lines (possibly more) on a FreeBSD 5.4 with a
default Perl install of 5.8.7, and 30 million on a Linux.
[talking about the following test case:
perl -e '$hdr="to"; $h="To:"; $h.=" [EMAIL PROTECTED]" for (1..4000000/3);
$h=$h.$h."From: bla to: me\n".$h;
@a=$h=~/^\Q$hdr\E:[ \t]+(.*?\n(?![ \t]))/smgi; printf("%d\n",scalar(@a))'
]
Btw, I'm assuming the $hdr is not supposed to be a regular expression,
but a plain string, for which \Q...\E quoting is more appropriate.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.