Re: [Exim] Rewriting From with comment addes

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Peter Radcliffe
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] Rewriting From with comment addes
"F.F. Jacot-Guillarmod" <Jacot@???> probably said:
> ^([gG][1234567890]......)@terrapin.ru.ac.za     \
> ${lookup mysql{select fullname from authentication where username='${quote_mysql:$local_part}'}{$value}fail}\
>  <$local_part@???> bcfrF

>
> but firing up exim -bt whines about:
>
> 2000-01-22 08:15:06 Exim configuration error
> unknown rewrite flag character (m) in line 504


Rewrite rules are whitespace seperated, so it's taking the mysql in
"${lookup mysql ..." as the next field (hence the "(m)" complaint).

Put double quotes around the middle rewrite field;

^([gG][1234567890]......)@terrapin.ru.ac.za \
"${lookup mysql{select fullname from authentication where username='${quote_mysql:$local_part}'}{$value}fail} \
<$local_part@???>" bcfrF

P.

-- 
pir                  pir@???                    pir@???