Autor: Phil Pennock Fecha: A: Sam Ng Cc: exim-users Asunto: Re: [Exim] perl for normal
Typing away merrily, Sam Ng produced the immortal words: > But it seems I can't use any perl string expansion in normal user's filter. > == someone@??? D=userforward defer (-11): error in filter file:
> failed
> to expand "${perl{some_code}{$input1}{$input2}}" in filter file:
> missing or misplaced { or }
>
> Any suggestion??
'some_code' should not be some code. It should be a subroutine name.
The subroutine should be in a separate file, and included with something
like:
perl_startup = do '/etc/exim.pl'
This is documented in the online specification, the "Embedded Perl"
section.
And yes, I initially made this mistake. Then I sat and read the docs
thoroughly. Enlightenment dawned.
--
HTML email - just say no --> Phil Pennock
"We've got a patent on the conquering of a country through the use of force.
We believe in world peace through extortionate license fees." -Bluemeat