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 2004/12/17 13:53:28 UTC

[Bug 4039] New: trusted/untrusted relays are uninitialized when reporting spam

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

           Summary: trusted/untrusted relays are uninitialized when
                    reporting spam
           Product: Spamassassin
           Version: 3.0.1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: bas@debian.org


When reporting spam with spamassassin -r, I get uninitialized value in concat
errors:

bas@harte]~> spamassassin -r < /tmp/spam
Use of uninitialized value in concatenation (.) or string at
/home/b/bas/local/SpamAssassin-3.0.2/share/perl/5.8.4/Mail/SpamAssassin/Reporter.pm
line 435.
Use of uninitialized value in concatenation (.) or string at
/home/b/bas/local/SpamAssassin-3.0.2/share/perl/5.8.4/Mail/SpamAssassin/Reporter.pm
line 435.
1 message(s) examined.

This originates from $trusted and $untrusted being uninitialized in
spamcop_report() (in Reporter.pm).  It seems (from debugging output) like
$self->{msg}->{metadata}->{relays_trusted_str} and
$self->{msg}->{metadata}->{relays_untrusted_str} aren't being initialized when
running spamassassin in reporting mode.

It can be fixed by simply calling extract_message_metadata in Reporter.pm.



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

[Bug 4039] trusted/untrusted relays are uninitialized when reporting spam

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4039





------- Additional Comments From bas@debian.org  2004-12-17 04:54 -------
Created an attachment (id=2571)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=2571&action=view)
proposed patch




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