http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5647

           Summary: spamcop reports truncation differennt than at
                    spamcop.net
           Product: Spamassassin
           Version: 3.2.1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Plugins
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


1) SC javascript truncates after 50*1000 Bytes, SA trcuncates after 50*1024 
Bytes
2) SC check that appended "truncated" message will not cross the above limit

Possible fix:

if (length($original) > $self->{main}->{conf}->{spamcop_max_report_size} * 
1000) {
    my $msg = "\n[truncated by SpamAssassin]\n";
    substr($original, ($self->{main}->{conf}->{spamcop_max_report_size} * 1000 -
length($msg))) =
      $msg;
  }



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

Reply via email to