You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Pedro David Marco <pe...@yahoo.com> on 2019/10/04 16:42:55 UTC

Subject not always included as first line of body

Hi!
In SA 3.4.2 I have noticed a slight score difference between consecutive SA executions.
Digging out, i have discovered that in plugin methods that use $body from the third argument, like in this example:

sub pdf_is_empty_body {       my ($self, $pms, $body, $min) = @_;

the subject is not always included as first line of body (as expected), but only in 50% of calls (aprox.)
In SA 3.4.1 it works ok.
any idea of why?

(I have asked as well to dev list)
Thanks.---------Pedreter


Solved: Subject not always included as first line of body

Posted by Pedro David Marco <pe...@yahoo.com>.
 SOLVED:
I think it may be a Perl 5.24.1 bug... SA $msg cache gets empty randomly!
i have written a small patch, if someone suffers the same problem, contact me.. not the best patch possible, but it works with minimum impact.
-------------
Pedreter.
    On Friday, October 4, 2019, 6:49:41 PM GMT+2, Pedro David Marco <pe...@yahoo.com> wrote:  
 
 Hi!
In SA 3.4.2 I have noticed a slight score difference between consecutive SA executions.
Digging out, i have discovered that in plugin methods that use $body from the third argument, like in this example:

sub pdf_is_empty_body {       my ($self, $pms, $body, $min) = @_;

the subject is not always included as first line of body (as expected), but only in 50% of calls (aprox.)
In SA 3.4.1 it works ok.
any idea of why?

(I have asked as well to dev list)
Thanks.---------Pedreter