[Wylug-help] exim condition problem

Gary Stainburn gary.stainburn at ringways.co.uk
Mon Jun 16 17:45:00 BST 2008


Hi William,

Thanks for that. I knew  it had to be something simple, but just could not see 
it.

Gary

On Monday 16 June 2008 17:23, William F. McCaw wrote:
> Hi There,
>
> On Mon, 16 Jun 2008, Gary Stainburn wrote:
> > In exim I am trying to add a recipient based on the original recipient
> > and the subject line.
> >
> > I have set up a redirect router but the condition does not work. If the
> > syntax is wrong I get an error, but if the syntax is right, the router
> > still does not action.
> >
> > I've tried reversing the yes/no to try to get a false positive, but still
> > didn't get it to trigger.  Any ideas?
> >
> > test_taxation:
> >  driver = redirect
> >  domains = ringways.co.uk
> >  local_parts = test
> >  condition = "${if match {${lc:$h_subject}}{${lc:tax request auth}}{yes}
> > {no}}"
> >  data = dtaxing at ringways.co.uk
> >  unseen
>
> I got the condition to work on my setup when it was changed to:
>
> --8<----------8<----------8<----------8<----------8<----------8<----------8
><--
>
>     condition = ${if match {${lc:$h_subject:}}{tax request auth}{yes}{no}}
>
> --8<----------8<----------8<----------8<----------8<----------8<----------8
><--
>
> The "$h_subject:" was missing it's trailing colon, I dropped the ${lc:...}
> around the regex since it was already in lower case and I also dropped the
> surrounding quotation marks.
>
> Any good ?

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     



More information about the Wylug-help mailing list