9 Nov
2012
9 Nov
'12
1:04 p.m.
Brian Candler wrote
try:
if (%{reply:Reply-Message} =~ /(.*)/) { update reply { Reply-Message = "stuff %{1}" } }
Nice idea, but it appears to suffer the same expansion problem.
As you have written it gives this error:
Bare %{...} is invalid in condition at: %{reply:Reply-Message} =~ /(.*)/)
Adding the double quotes:
Oh right. I usually do this with e.g. User-Name without having to specify the attribute list explicitly; I forget whether syntax works to do that with a raw variable. I know outer.VarName works raw, so maybe just reply:Reply-Message without the braces or quotes?