Re: [exim-dev] [Bug 458] Various expansion items and conditi…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Magnus Holmgren
Datum:  
To: exim-dev
Betreff: Re: [exim-dev] [Bug 458] Various expansion items and conditions iterating over lists
I really think we should get rid of the gratuitous braces. That could be done
without breaking compatibility, but requires huge modifications to expand.c.

Look how much more readable this is:

> ${reduce
>     ${map ${addresses:$recipients}
>           ${lookup {${domain:$item}}lsearch{/etc/exim/conf/domains}
>                    ${lookup ${local_part:$item} partial0-lsearch                                      
>                                         {/etc/exim/conf/${domain:$item}/acls}
>                             ${lookup $value lsearch* {/etc/exim/conf/acls/spam}
>                                      ${extract {reject}{$value}{$value}{0}}
>                                      0}
>                             0}
>                    0}
>           }
>     0
>     ${if >{$item}{$value}{$item}{$value}}
> }


-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans