<div dir="ltr">Which kind of problems could happen if the spam scan is skipped ?<div>I mean, apart not evaluate other rules .</div><div><br></div><div>Maybe you could add a flag like " enable-quick" which disable spam scan IF virus is found.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 17, 2018 at 1:16 PM, Dietmar Maurer <span dir="ltr"><<a href="mailto:dietmar@proxmox.com" target="_blank">dietmar@proxmox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> No, it's just a simple test with one receiver.<br>
> <br>
> I've read the code of Spam.pm (analyze_spam sub)<br>
<br>
</span>Rule matching is done in pmg-api/bin/pmg-smtp-filter, the <br>
method is called apply_rules():<br>
<br>
sub apply_rules {<br>
    my ($self, $queue, $msginfo, $entity, $ldap) = @_;<br>
...<br>
<br>
<br>
But it seems wrong to me to skip all rules only because we found a virus.<br>
<br>
It would be possible to skip SPAM detection if we found a virus<br>
($queue->{vinfo})<br>
in analyze_spam(), but it may result in interesting info. So I am not sure<br>
if we really want to skip that?<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
pmg-devel mailing list<br>
<a href="mailto:pmg-devel@pve.proxmox.com">pmg-devel@pve.proxmox.com</a><br>
<a href="https://pve.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel" rel="noreferrer" target="_blank">https://pve.proxmox.com/cgi-<wbr>bin/mailman/listinfo/pmg-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Got problems with Windows? - ReBooT<br>Got problems with Linux? - Be RooT </div>
</div>