[exim] AutoReply transport and UTF-8 characters in subject

Top Page
Delete this message
Reply to this message
Author: Sander Smeenk
Date:  
To: exim-users
Subject: [exim] AutoReply transport and UTF-8 characters in subject
Hi,

With the router & transport shown below, i'm having autoreplies fail
with the message 'Expansion of "Re: $h_subject" in UserAutoreply
transport contains non-printing character 225'.

The subject of this message was 'Test-email2, ツ€ņ¥ß'.
Encoded to:
| Subject: Test-email2, =?utf-8?B?44OE4oKsxYY=?=
|        =?utf-8?B?wqXDnw==?=


The sender receives a DSN stating delivery of the message failed, but
the message does get delivered to the user's mailbox. It's the
auto-reply that fails and causes the DSN, which is very confusing.

Can anyone tell me why the above mentioned subject isn't valid and
causes the autoreply transport to fail?

And why does this create a vague DSN message to the sender which doesn't
show anything as to the cause of the problem?

Looking forward to any reply!

Kind regards,
Sander Smeenk.

| begin routers

|
| # Autoreply is enabled for this virtual or user
| bitAutoreplyUser:
| driver = accept
| domains = maildrop.dmz.bit.nl
| senders = ! ^.*-request@.*:\
|     ! ^bounce-.*@.*:\
|     ! ^.*-bounce@.*:\
|     ! ^owner-.*@.*:\
|     ! ^listmaster@.*:\
|     ! ^mailer-daemon@.*:\
|     ! ^root@.*
| condition = ${if \
|         and {\
|             { def:acl_m8 } \
|             { match{$acl_m8}{\N(^|,)\N$local_part\N(,|@|$)\N}} \
|             { \
|                 and { \
|                     { !match {$h_precedence:} {(?i)junk|bulk|list} } \
|                     { !eq {$sender_address} {} } \
|                     { !def:header_X-Cron-Env: } \
|                     { !def:header_Auto-Submitted: } \
|                     { !def:header_Autorespond: } \
|                     { !def:header_X-Autoresponse: } \
|                     { !def:header_X-Autoreply-From: } \
|                     { !match {$h_Subject:} {\N^Out of Office\N} } \
|                     { !match {$h_Subject:} {\N^Auto-Reply:\N} } \
|                     { !match {$h_Subject:} {\N^Autoresponse:\N} } \
|                 } \
|             } \
|         } \
|     }
| no_expn
| transport = bitUserAutoreply
| no_verify
| unseen

|
| [ .. ]

|
| begin transports
| UserAutoreply:
|         driver = autoreply
|         text = AUTOREPLY_USER_TEXT
|         from = AUTOREPLY_USER_SENDER
|         to = $sender_address
|         subject = "Re: $h_subject"
|         headers_add = Precedence: junk


--
| Have you ever imagined a world with no hypothetical situations?
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D