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 2007/09/14 10:13:04 UTC

[Bug 5647] New: spamcop reports truncation differennt than at spamcop.net

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: dev@spamassassin.apache.org
        ReportedBy: anfi@priv.onet.pl


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.