Re: [Exim] Allow message to work with accept in ACLs?

Pàgina inicial
Delete this message
Reply to this message
Autor: Bradford Carpenter
Data:  
A: exim-users
Assumpte: Re: [Exim] Allow message to work with accept in ACLs?
On Thu, 22 Jan 2004 17:41:47 -0500, Eli wrote:
> I was wondering if anyone else has though of having this feature or not?


Currently I have my spam scanning ACL do this at the top:

         warn    message         = X-Spam-Error: Message too big, scan
 skipped
                 condition       = ${if > {$message_size}{5M} {yes}{no}}


         accept  condition       = ${if > {$message_size}{5M} {yes}{no}}


So that it can bypass any emails that are too large for scanning. I
don't
like having to duplicate an identical condition in two places since I
later
plan to use MySQL to get the message size limit, so I'd be doing 2
queries
when it would be nice to reduce it to just 1.

As far as not doing two queries, I'd think you could use an acl
variable:

        warn      message = X-Spam-Error: Message too big, scan skipped
                condition = ${if > {$message_size}{5M} {yes}{no}}
               set acl_m5 = skipscan


        accept  condition = ${if eq{$acl_m5}{skipscan} {yes}{no}}


Exim Specs don't really say explicitly, but "the processing of a verb
ceases as soon as its outcome is known" would seem to indicate the
variable will not get set if the condition fails. You'd still need two
condition statements and two verbs, though.

Brad