Re: [Exim] perl for normal

Góra strony
Delete this message
Reply to this message
Autor: Sam Ng
Data:  
Dla: Phil Pennock
CC: exim-users
Temat: Re: [Exim] perl for normal
"some_code" is already a sub routine function!

I can use perl expansion in system filter, but have error in normal user's
filter. Have you try that?

Sam Ng

----- Original Message -----
From: Phil Pennock <Phil.Pennock@???>
To: Sam Ng <dnsadmin@???>
Cc: <exim-users@???>
Sent: Wednesday, June 21, 2000 5:54 PM
Subject: 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

--
## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##