Author: Sven Hartge Date: To: exim-users Subject: Re: [exim] Handling double commas in LDAP lookup results
Marten Lehmann <lehmann@???> wrote: > Hello, > we use the autoreply transport like this: > address_autoreply:
> driver = autoreply
> text = ${lookup ldap
> {ldap:///cn=$local_part@$domain,ou=users,dc=mail?autoresponder}}
> from = $local_part@$domain
> subject = Re: ${rfc2047:$header_subject:} (autoresponse)
> to = $sender_address
> headers = MIME-Version: 1.0\nContent-Type: text/plain;
> charset=UTF-8\nContent-Transfer-Encoding: 8bit
> once = /var/spool/exim4/once.db
> once_repeat = 1d > It worked fine for years and we didn't exactly notice, with which exam
> update double commas have been added. Customers complained just recently
> about seeing double commas in their autoreplies. > How do we get rid of the double commas so the replies sent the senders
> look like normal again?
You need to use ${sg} to replace ,, with ,:
text = ${sg{${lookup ldap {ldap:///cn=$local_part@$domain,ou=users,dc=mail?autoresponder}}{,,}{,}}