Trying to add a new AV engine

Diego Palacios diego at rosanegra.org
Sun Feb 20 13:47:18 CET 2022


Thanks Damian. I could understand it with the reading.

This works:


### http://www.drweb.com/
['Dr. Web Security Space ',
'drweb-ctl', 'checkmail {}',
   qr/\bOK$/m,                          # Clean, skipped
   qr/\bReject/m,                       # Not clean
   qr/infected with (.*)$/m ],      # Name of virus






On Sun, Feb 20, 2022 at 11:08 AM Damian <amavis at arcsin.de> wrote:

> > ['Dr. Web Security Space ',
> >
> > 'drweb-ctl', 'checkmail {}',
> >
> > qr/^Reject/m,,
> >
> > qr/^(?:infected with:\s+(.+)/m ],
>
> Have a look at [1].
>
> - Both your patterns anchor at beginning of line.
> - A clean mail would not match "Reject" anywhere, but you defined it for
> the "clean" pattern.
>
> [1]
> https://gitlab.com/amavis/amavis/-/blob/master/lib/Amavis/AV.pm#L960-997
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.amavis.org/pipermail/amavis-users/attachments/20220220/375d0776/attachment.htm>


More information about the amavis-users mailing list