> # exim -bt [email protected] 
> LOG: MAIN PANIC
>   attempt to expand tainted string '$rheader_From'
> LOG: MAIN PANIC
>   attempt to expand tainted string '${if def:header_From {true}{false}}'
> Sieve error: header string expansion failed in line 3

This is quite likely an internal expansion from sieve.c:2327.  I did
not really follow the list recently, so I missed the introduction of
"tainted" expansions, but the code does this:

      expand_header(&header_value,h);
      header_def=expand_string(string_sprintf("${if def:header_%s 
{true}{false}}",quote(h)));
      if (header_value.character == NULL || header_def == NULL)

That's to expand and check if a header is defined in order to
compare it with a value.  Perhaps there is a better way to do
that or a different API should be used now?

Michael

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to