You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by MySQL Student <my...@gmail.com> on 2009/09/28 00:57:21 UTC
Sought regex problem
Hi,
I posted bug 6198 a few weeks ago, and there have been no comments or
fixes on it in two weeks, and I'm unsure what to do next. It's either
not a bug and I'm doing something wrong or it's not significant enough
to bother with the focus on v3.3.
Thought someone might have some ideas here? I'm using perl-5.6. Anyone
else using perl-5.6 with the sought rules?
[13204] dbg: config: read file /var/lib/spamassassin/3.002005/sought_rules_yerp_
org/20_sought.cf
[13204] warn: config: invalid regexp for rule __SEEK_D52BRW: / Don\'t want to
lose your potential of a lover\? Lucky you are, in 21th century all bed-related
male problems can be solved by the powerful remedy, the all-mighty blue caplet\!
This solution will give you the right support for 50\(\!\) hours\. Rock-like and
ready to go\. more\x{bb}/: / Don\'t want to lose your potential of a lover\?
Lucky you are, in 21th century all bed-related male problems can be solved by /:
Can't use \x{} without 'use utf8' declaration
Maybe it's a perl module that's incompatible?
Ideas greatly appreciated.
Thanks,
Alex
Re: Sought regex problem
Posted by Michael Scheidell <sc...@secnap.net>.
Michael Scheidell wrote:
> MySQL Student wrote:
>> Hi,
>>
>> I posted bug 6198 a few weeks ago, and there have been no comments or
>> fixes on it in two weeks, and I'm unsure what to do next. It's either
>> not a bug and I'm doing something wrong or it's not significant enough
>> to bother with the focus on v3.3.
>>
>> Thought someone might have some ideas here? I'm using perl-5.6. Anyone
>> else using perl-5.6 with the sought rules?
one more thing to consider, perl 5.6 is 9 years old, 5.6.2 is 6 years
old, and SA is going to drop support for it in 3.3
<http://taint.org/2009/06/25/095002a.html>
_________________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r).
For Information please see http://www.secnap.com/products/spammertrap/
_________________________________________________________________________
Re: Sought regex problem
Posted by Michael Scheidell <sc...@secnap.net>.
MySQL Student wrote:
> Hi,
>
> I posted bug 6198 a few weeks ago, and there have been no comments or
> fixes on it in two weeks, and I'm unsure what to do next. It's either
> not a bug and I'm doing something wrong or it's not significant enough
> to bother with the focus on v3.3.
>
> Thought someone might have some ideas here? I'm using perl-5.6. Anyone
> else using perl-5.6 with the sought rules?
>
Can't use \x{} without 'use utf8' declaration
comments here: <http://www.perlmonks.org/index.pl?node_id=424745>
suggest moving to perl 5.8x since it does a better job of unicode.
so, don't use perl 5.6, with is not supportable anymore, go to 5.10.
>
> [13204] dbg: config: read file /var/lib/spamassassin/3.002005/sought_rules_yerp_
> org/20_sought.cf
> [13204] warn: config: invalid regexp for rule __SEEK_D52BRW: / Don\'t want to
> lose your potential of a lover\? Lucky you are, in 21th century all bed-related
> male problems can be solved by the powerful remedy, the all-mighty blue caplet\!
> This solution will give you the right support for 50\(\!\) hours\. Rock-like and
> ready to go\. more\x{bb}/: / Don\'t want to lose your potential of a lover\?
> Lucky you are, in 21th century all bed-related male problems can be solved by /:
> Can't use \x{} without 'use utf8' declaration
>
> Maybe it's a perl module that's incompatible?
>
> Ideas greatly appreciated.
> Thanks,
> Alex
>
_________________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r).
For Information please see http://www.spammertrap.com
_________________________________________________________________________
Re: Sought regex problem
Posted by Mark Martinec <Ma...@ijs.si>.
On Monday September 28 2009 04:58:42 MySQL Student wrote:
> Mark suggested in the bugzilla update that I "change SpamAssassin to
> add 'use utf8' into code generated from rules when it sees it is being
> run with a pre-5.8 version of perl." How do I do this for the time
> being?
Try the following (for SA 3.2.5). I haven't tested it, but according
to the perl docs this is what is missing:
--- lib/Mail/SpamAssassin/Plugin/Check.pm (revision 819489)
+++ lib/Mail/SpamAssassin/Plugin/Check.pm (working copy)
@@ -271,10 +271,14 @@
my $evalstr = $self->{evalstr};
+ my $needed_utf8_pragma = '';
+ $needed_utf8_pragma = 'use utf8;' if $] >= 5.006 && $] < 5.008;
+
# generate the loop that goes through each line...
$evalstr = <<"EOT";
{
package $package_name;
+ $needed_utf8_pragma;
$self->{evalstr2}
Mark
Re: Sought regex problem
Posted by MySQL Student <my...@gmail.com>.
Hi,
>> [13204] dbg: config: read
>> file /var/lib/spamassassin/3.002005/sought_rules_yerp_
>> org/20_sought.cf [13204] warn: config: invalid regexp for rule
>> __SEEK_D52BRW:
>
> grep doesn't find __SEEK_D52BRW in my copy of the rules.
This was from the sa-update when I submitted the bug report.
Thanks to all for the feedback and the update to the bugzilla. I'm in
the process of upgrading perl, but there are still a few applications
that depend on it.
Mark suggested in the bugzilla update that I "change SpamAssassin to
add 'use utf8' into code generated from rules when it sees it is being
run with a pre-5.8 version of perl." How do I do this for the time
being?
Thanks,
Alex
Re: Sought regex problem
Posted by RW <rw...@googlemail.com>.
On Sun, 27 Sep 2009 18:57:21 -0400
MySQL Student <my...@gmail.com> wrote:
> Hi,
>
> I posted bug 6198 a few weeks ago, and there have been no comments or
> fixes on it in two weeks, and I'm unsure what to do next. It's either
> not a bug and I'm doing something wrong or it's not significant enough
> to bother with the focus on v3.3.
>
> Thought someone might have some ideas here? I'm using perl-5.6. Anyone
> else using perl-5.6 with the sought rules?
>
> [13204] dbg: config: read
> file /var/lib/spamassassin/3.002005/sought_rules_yerp_
> org/20_sought.cf [13204] warn: config: invalid regexp for rule
> __SEEK_D52BRW:
grep doesn't find __SEEK_D52BRW in my copy of the rules.
If you are running sa-update from a crontab, I'd suggest you check the
timestamp on 20_sought.cf to make sure it's still working.
One problem I've had is that when SA is deinstalled (prior to
[re]installing) the keyring directory gets removed, and so any
additional keys get lost. This may be FreeBSD specific, but I can't
find anything in the port files that might be doing this.