Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

Sought regex problem

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


mysqlstudent at gmail

Sep 27, 2009, 3:57 PM

Post #1 of 6 (511 views)
Permalink
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


rwmaillists at googlemail

Sep 27, 2009, 4:54 PM

Post #2 of 6 (479 views)
Permalink
Re: Sought regex problem [In reply to]

On Sun, 27 Sep 2009 18:57:21 -0400
MySQL Student <mysqlstudent [at] gmail> 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.


scheidell at secnap

Sep 27, 2009, 6:39 PM

Post #3 of 6 (475 views)
Permalink
Re: Sought regex problem [In reply to]

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
_________________________________________________________________________


scheidell at secnap

Sep 27, 2009, 6:43 PM

Post #4 of 6 (477 views)
Permalink
Re: Sought regex problem [In reply to]

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/
_________________________________________________________________________


mysqlstudent at gmail

Sep 27, 2009, 7:58 PM

Post #5 of 6 (477 views)
Permalink
Re: Sought regex problem [In reply to]

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


Mark.Martinec+sa at ijs

Sep 28, 2009, 3:46 AM

Post #6 of 6 (472 views)
Permalink
Re: Sought regex problem [In reply to]

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

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.