Re: [exim] Rule efficiency in acl_check_mime

Pàgina inicial
Delete this message
Reply to this message
Autor: Wycliffe Bahati
Data:  
A: Odhiambo G. Washington
CC: exim-users
Assumpte: Re: [exim] Rule efficiency in acl_check_mime
On Mon, 2005-04-18 at 12:55, Odhiambo G. Washington wrote:
> Let us consider a specific rule that I use in my acl_check_mime to
> accept any mail that is larger than 1MB, so that it is not passed
> through the virus scanner engine. Which of these two rules do you
> consider more efficient? Why?
>
> 1. accept condition = ${if >{$message_size}{1M}{yes}{no}}
>
> 2. accept condition = ${if <{$message_size}{1M}{yes}{no}}
>
>
>
>     cheers!

>
>        - wash 
> +----------------------------------+-----------------------------------------+
> Odhiambo Washington                    . WANANCHI ONLINE LTD (Nairobi, KE)  |
> wash _at_ wananchi _ dot _ com        . 1ere Etage, Loita Hse, Loita St.,  |
> GSM: (+254) 722 743 223            . # 10286, 00100 NAIROBI             |
> GSM: (+254) 733 744 121            . (+254) 020 313 985 - 9             |
> +---------------------------------+------------------------------------------+
> "Oh My God! They killed init! You Bastards!"  
>                          --from a /. post

Hi Wash
Am I missing something here. The 2 rules mean totally different. One compares if
the message is greater than which means you scan ones that are greater than. The
other means less than. Ok interms of efficiency I guess the two will execute at the
same speed and none would occupy more resources Given that the file size is normaly
predetermined before downloading.


Rgds
Wycliffe