[prev in list] [next in list] [prev in thread] [next in thread]
List: amavis-user
Subject: SOLVED: Re: Assigning a virus scanner to a policy bank (AV: Not an ARRAY reference...)
From: Patrick Ben Koetter <p () state-of-mind ! de>
Date: 2012-06-13 11:36:04
Message-ID: 20120613113603.GE32184 () state-of-mind ! de
[Download RAW message or body]
* Antoine Nguyen <tonio@ngyn.org>:
> Le 12/06/2012 23:57, Patrick Ben Koetter a écrit :
> Patrick,
>
> have you already tried like this ?
>
> $policy_bank{'avira'} = {
> av_scanners => (
>
> ['Avira SAVAPI', \&ask_daemon,
> ["*", 'savapi:/var/run/avira/savapi.sock', '000000'],
> qr/^(200|210) /m, qr/^(310|420|319) /m,
> qr/^(310|420) (.+?) ; \S* ; (?:.*)$/m ],
> ),
> };
Almost! Using square brackets did the trick:
av_scanners => [
['Avira SAVAPI', \&ask_daemon,
["*", 'savapi:/var/run/avira/savapi.sock', '000000'],
qr/^(200|210) /m, qr/^(310|420|319) /m,
qr/^(310|420) (.+?) ; \S* ; (?:.*)$/m ],
],
};
p@rick
--
All technical questions asked privately will be automatically answered on the
list and archived for public access unless privacy is explicitely required and
justified.
saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic