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/09/23 07:12:10 UTC

[Bug 3804] New: _LANGUAGES_ tag does not get set properly

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

           Summary: _LANGUAGES_ tag does not get set properly
           Product: Spamassassin
           Version: 3.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: david@madole.net


My local.cf sets:

   clear_report_template
   report _LANGUAGES_
   report _SUMMARY_

   ok_languages en

The report produced does not contain the language found, even when the 
UNWANTED_LANGUAGE_BODY appears in _SUMMARY_.

Note before reading further: I AM NOT A PERL PROGRAMMER.

That said, I did poke around a bit and I found that changing this:

   $self->{tag_data}->{LANGUAGES} = $self->{msg}->{metadata}->{"X-Languages"};

to this:

   $self->{tag_data}->{LANGUAGES} = $self->{msg}->get_metadata("X-Languages");

in sub extract_message_metadata around line 1229 of PerMsgStatus.pm does fix 
the problem. I can't tell what the intention of the original line was.



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