Mailing List Archive

[Bug 2605] New: $domain_data is not expanded during event_action
https://bugs.exim.org/show_bug.cgi?id=2605

Bug ID: 2605
Summary: $domain_data is not expanded during event_action
Product: Exim
Version: 4.94
Hardware: x86-64
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: String expansion
Assignee: unallocated@exim.org
Reporter: daan@vusam.com
CC: exim-dev@exim.org

Recently started to rewrite our config to make sure we deal with taints
correctly.
While testing the changes I noticed that "${quote_mysql:$domain_data}" is not
expanded during event_action. Our event_action is like this:

event_action = ${if eq {msg:delivery}{$event_name}{${lookup mysql{ INSERT INTO
mail_received (domain, bytesIn) VALUES ('${quote_mysql:$domain_data}',
${quote_mysql:$message_size})}}}{}}

This result in a query with empty '' and thus fails.

When using $domain it works. Not sure if this affects other variables too.

- Daan

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##