[exim] MIME, ${run, and $message_body

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Uptime.pl - irc
Data:  
Para: exim-users
Asunto: [exim] MIME, ${run, and $message_body

Hi,
i have problem with running command with $message_body argument in mime
format.

When message isn't in mime everything works fine, but if it is exim return
Too many arguments in command "/file.sh "argument1 argument2" "Subject:
Re: some text Message_body: message...."" in ${run} expansion

I'm not sure but it can be characters coding fault.
When in incoming mail are characters like: "=B3", "=EA", "=BF", etc (I
don't know which code page it is, for sure it isn't iso-8859-2) exim
always return `Too many arguments in command'.

file.sh is correct, simple bash script.
I have compiled exim with HAVE_ICONV=yes and HEADERS_CHARSET="ISO-8859-2".

My_ugly_condition:
   driver = accept
   check_local_user
# local_part_suffix = +* : -*
# local_part_suffix_optional
   condition = ${lookup mysql {SELECT1} {$value}{0}}
   headers_add = X-Spam-Score-Max: \
                     ${lookup mysql {SPAM_SELECT} {$value}{32}}\n\
                 X-Run: Run command \
                     ${lookup mysql {SELECT2}{${run {/file.sh \
             "$value" "Subject: $h_subject Message_body: \
         $message_body"}}} }
   transport = local_delivery
   cannot_route_message = Unknown user


How to fix this problem?
Thanks.

Best regards.