Re: [exim] Exim before-queue filtering?

Góra strony
Delete this message
Reply to this message
Autor: Chris Wilson
Data:  
Dla: exim users
Temat: Re: [exim] Exim before-queue filtering?
Hi all,

On Wed, 1 Jul 2009, Tomasz Chmielewski wrote:

> http://www.exim.org/exim-html-current/doc/html/spec_html/ch41.html


I think the "cmdline" example on that page is wrong. It says:

> For example, Sophos Sweep reports a virus on a line like this:
>
> "Virus 'W32/Magistr-B' found in file ./those.bat"
>
> For the trigger expression, we can match the phrase ?found in file?. For
> the name expression, we want to extract the W32/Magistr-B string, so we
> can match for the single quotes left and right of it. Altogether, this
> makes the configuration setting:
>
>    av_scanner = cmdline:\
>             /path/to/sweep -ss -all -rec -archive %s:\
>             found in file:'(.+)'


but the name expression there extracts the filename, not the virus name
(and doesn't match the above text anyway). I think it should be something
like this:

av_scanner = cmdline:\
              /path/to/sweep -ss -all -rec -archive %s:\
              Virus '(.*)' found


How does one go about changing the docs?

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |