Re: [exim] String manipulation in require

Top Page
Delete this message
Reply to this message
Author: Gémes Géza
Date:  
To: John Burnham
CC: exim-users
Subject: Re: [exim] String manipulation in require
John Burnham írta:
>> but at something like
>> /var/spool/cyrus/mail/${lc::${substr_0_1::$local_part}}/user/$
>> {lc::$local_part
>> | sed -e s/./^/g}
>> the problem is I don't know how could I specify a script for
>> checking if
>> the mailbox exist :-(.
>>
>
> Would the ${sg{}{}{}} operator help out ?
> http://www.exim.org/exim-html-4.66/doc/html/spec_html/ch11.html
> J
>
>

Thanks for your really clever answer, however as I wanted to replace
just a dot i've choosen to use the ${tr{}{}{}} operator instead:
require_files =
/var/spool/cyrus/mail/${lc::${substr_0_1::$local_part}}/user/${tr{${lc::$local_part}}{.}{^}}
Thanks again for the pointer to the right part of the documentation.

Geza