[prev in list] [next in list] [prev in thread] [next in thread]
List: spamassassin-users
Subject: Solved: Subject not always included as first line of body
From: Pedro David Marco <pedrod_marco () yahoo ! com>
Date: 2019-10-07 10:38:18
Message-ID: 1453831215.2966738.1570444698628 () mail ! yahoo ! com
[Download RAW message or body]
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 \
<pedrod_marco@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
[Attachment #3 (text/html)]
<html><head></head><body><div class="ydp45173bc2yahoo-style-wrap" style="font-family: \
times new roman, new york, times, serif; font-size: 16px;"><div></div> <div \
dir="ltr" data-setdir="false">SOLVED:</div><div dir="ltr" \
data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I think it may be a \
Perl 5.24.1 bug... SA $msg cache gets empty randomly!</div><div dir="ltr" \
data-setdir="false"><br></div><div dir="ltr" data-setdir="false">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.</div><div dir="ltr" \
data-setdir="false"><br></div><div dir="ltr" \
data-setdir="false">-------------<br></div><div dir="ltr" \
data-setdir="false">Pedreter.</div><div><br></div>
</div><div id="ydpe02e8cd2yahoo_quoted_1243096091" \
class="ydpe02e8cd2yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, \
sans-serif;font-size:13px;color:#26282a;">
<div>
On Friday, October 4, 2019, 6:49:41 PM GMT+2, Pedro David Marco \
<pedrod_marco@yahoo.com> wrote: </div>
<div><br></div>
<div><br></div>
<div><div id="ydpe02e8cd2yiv1208120727"><div><div \
class="ydpe02e8cd2yiv1208120727yahoo-style-wrap" style="font-family:times new roman, \
new york, times, serif;font-size:16px;"><div dir="ltr"><div><div style="color:rgb(0, \
0, 0);font-family:new times, serif;font-size:16px;">Hi!</div><div style="color:rgb(0, \
0, 0);font-family:new times, serif;font-size:16px;"><br></div><div \
style="color:rgb(0, 0, 0);font-family:new times, serif;font-size:16px;">In SA 3.4.2 I \
have noticed a slight score difference between consecutive SA executions.</div><div \
style="color:rgb(0, 0, 0);font-family:new times, \
serif;font-size:16px;"><br></div><div style="color:rgb(0, 0, 0);font-family:new \
times, serif;font-size:16px;">Digging out, i have discovered that in plugin methods \
that use $body from the third argument, like in this example:</div><div \
style="color:rgb(0, 0, 0);font-family:new times, \
serif;font-size:16px;"><br></div><div style="color:rgb(0, 0, 0);font-family:new \
times, serif;font-size:16px;"><br></div><div style="color:rgb(0, 0, \
0);font-family:new times, serif;font-size:16px;">sub pdf_is_empty_body {</div><div \
style="color:rgb(0, 0, 0);font-family:new times, serif;font-size:16px;"> \
my ($self, $pms, $body, $min) = @_;</div><div style="color:rgb(0, 0, \
0);font-family:new times, serif;font-size:16px;"><br></div><div style="color:rgb(0, \
0, 0);font-family:new times, serif;font-size:16px;"><br></div><div \
style="color:rgb(0, 0, 0);font-family:new times, serif;font-size:16px;">the subject \
is not always included as first line of body (as expected), but only in 50% of calls \
(aprox.)</div><div style="color:rgb(0, 0, 0);font-family:new times, \
serif;font-size:16px;"><br></div><div style="color:rgb(0, 0, 0);font-family:new \
times, serif;font-size:16px;">In SA 3.4.1 it works ok.</div><div style="color:rgb(0, \
0, 0);font-family:new times, serif;font-size:16px;"><br></div><div \
style="color:rgb(0, 0, 0);font-family:new times, serif;font-size:16px;">any idea of \
why?</div><div style="color:rgb(0, 0, 0);font-family:new times, \
serif;font-size:16px;"><br></div><div style="color:rgb(0, 0, 0);font-family:new \
times, serif;font-size:16px;" dir="ltr"><br></div><div style="color:rgb(0, 0, \
0);font-family:new times, serif;font-size:16px;" dir="ltr">(I have asked as well to \
dev list)</div><div style="color:rgb(0, 0, 0);font-family:new times, \
serif;font-size:16px;"><br></div><div style="color:rgb(0, 0, 0);font-family:new \
times, serif;font-size:16px;">Thanks.</div><div style="color:rgb(0, 0, \
0);font-family:new times, serif;font-size:16px;">---------</div><div \
style="color:rgb(0, 0, 0);font-family:new times, \
serif;font-size:16px;">Pedreter</div><div><br></div></div><br></div></div></div></div></div>
</div>
</div></body></html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic