Auteur: Dean Brooks Date: À: exim-users Sujet: Re: [exim] exim condition isn't matching or result don't assign
On Tue, May 14, 2013 at 09:47:42AM +0400, deisler wrote: > 13.05.2013 18:29, Dean Brooks ?????:
> >On Mon, May 13, 2013 at 06:08:30PM +0400, deisler wrote:
> >>13.05.2013 16:34, Jeremy Harris ?????:
> >>>I think you don't want the "\" before the "(" and ")".
> >>Characters exceptions required otherwise () is perceived as a group.
> >You have to have grouping parentheses or the value won't get returned
> >into $1.
> >
> >This may be closer to what you are looking for:
> >
> > set acl_c_spf_for_dkim = ${if match{$spf_received}{\N\((.*)\)\N}{$1}}
> >
> >--
> >Dean Brooks
> >dean@???
> >
> But why can't i get the text with ()?
Not sure I understand what you mean. If you mean you would like the ()
included around the final value assigned into the variable, you
could use:
set acl_c_spf_for_dkim = ${if match{$spf_received}{\N(\(.*\))\N}{$1}}