Ticket #2934 (closed defect: worksforme)
Empty description field
| Reported by: | Bjorn Jensen | Owned by: | decoder |
|---|---|---|---|
| Priority: | minor | Milestone: | Development Release Version 3.5 |
| Component: | Configuration | Version: | 3.5.1 |
| Keywords: | Cc: |
Description
We found that when processing fuzzyocr rules, the spamassassin header would not include the description, what actually hit. Instead we would simply get this:
4.6 FUZZY_OCR_KNOWN_HASH BODY:
After looking in the source we found that the api function in spamassassin, _handle_hit (in perMsgStatus.pm) took a new parameter, that were not appended at the end of the function call, but were instead added where the description param were previously.
Changing the fuzzyocr code from:
$pms->_handle_hit( "FUZZY_OCR", $score, "BODY: ",
$pms->{conf}->{descriptions}->{FUZZY_OCR} . "\n".$debuginfo );
To:
$pms->_handle_hit( "FUZZY_OCR", $score, "BODY: ", "",
$pms->{conf}->{descriptions}->{FUZZY_OCR} . "\n".$debuginfo );
Fixed things
I'm by no means a perl coder, so I'd love to hear if this is the correct approach, or if we have broken something else in the process.
Some versions:
spamassassin -V SpamAssassin? version 3.2.5
running on Perl version 5.8.8
FuzzyOcr?: 3.5.1 (although the FuzzyOcr?.pm file says version 3.4)
