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 2005/01/03 11:16:05 UTC

[Bug 4061] New: ran_rule_debug_code has uninitialized value for !~ header tests

http://bugzilla.spamassassin.org/show_bug.cgi?id=4061

           Summary: ran_rule_debug_code has uninitialized value for !~
                    header tests
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: quinlan@pathname.com


If rule debugging is turned on and a !~ header test hits, then there's a
warning since $& is not defined for a !~ match.

Use of uninitialized value in concatenation (.) or string at (no file), rule
INVALID_DATE, line 4.

And the offending code:

        if ($self->get(q#Date#, q#Wed, 31 Jul 2002 16:41:57 +0200#) !~ /^\s*(?:\
(?i:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s+)?[0-3\s]?[0-9]\s+(?i:Jan|Feb|Ma[ry]|Apr|Ju\
[nl]|Aug|Sep|Oct|Nov|Dec)\s+(?:[12][901])?[0-9]{2}\s+[0-2]?[0-9](?:\:[0-5][0-9]\
){1,2}\s+(?:[AP]M\s+)?(?:[+-][0-9]{4}|UT|[A-Z]{2,3}T)(?:\s+\(.*\))?\s*$/) {
          $self->got_hit (q#INVALID_DATE#, q{});

    dbg("rules: ran header regex rule INVALID_DATE ======> got hit: match='$&'"\
);


        }
      }



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