On 25/09/2014 19:14, Rimas Kudelis wrote:
Hi folks, this would make sense. It would explain why regardless of the number of closing braces you'd add, the condition fails. Just to make sure that it's not just logs where the cropping occurs, could you find a working condition and break it by introducing some random whitespace or other useless chars in it?
Tried a few more things, most importantly tried to change this into a macro as per example from here http://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_exim_run_tim... point 8 Thus, created a Macro like below (above router definition) SA_Query = select users.sa_tag * 10 from users,domains \ where localpart = '${quote_mysql::$local_part}' \ and domain = '${quote_mysql::$domain}' \ and users.on_spamassassin = 1 \ and users.domain_id=domains.domain_id; both with double and single colon, and got the same error as before. Then changed the Macro to below SA_Query = select users.sa_tag * 10 from users,domains ; And lo! the error changed to below 22:48:49 16989 failed to expand: ${lookup mysql{select users.sa_tag * 10 from users,domains ;}{$value}f 22:48:49 16989 error message: syntax error in "lookup" item - "fail" expected 22:48:49 16989 failed to expand: ${if or { { <{$spam_score_int}{1} } { <{$spam_score_int}{${lookup mysql{select users.sa_tag * 10 from users,domains ;}{$value}f 22:48:49 16989 error message: syntax error in "lookup" item - "fail" expected inside "or{...}" condition 22:48:49 16989 virtual_domains router: defer for Which looks like the same length issue to me (but to be quite honest, had a very very long day and I am not that confident on my findings -- brain is not functioning at optimum level now :P). I do recall in one of the emails I read someone suggested using Macros instead of long query, and thought it would work. But apparently it will not -- given that all macro is blown to full within the headers_remove section, which in turn is exhibiting that length limit issue which got us to this situation on the first place. So, what other things can/shall we try? Ideas? All the best Shah