On Fri, Nov 27, 2015 at 02:55:34PM -0500, Felipe Gasper wrote:
> >A non-delivery-notification (MIME multipart/report content type
> >RFC3462) consists of (up to) three parts:
> >
> > 1. Required initial free-form body part, this can use UTF-8
> > without any need for EAI.
> >
> > 2. Required message/delivery-status machine readable part,
> > this requires EAI for non-ASCII content. (RFC3464).
> >
> > 3. Optional returned message or message headers. If
> > the returned message has UTF-8 headers, it may need
> > to encapsulated as an EAI message/global
> >
> >My interpretation of the question was that you wanted UTF-8 in the
> >"part 1", body, in which case *in principle* you could have raw
> >UTF-8 there, and a "charset=utf-8" attribute for the enclosing MIME
> >part, provided that the code that generates bounces (in this case
> >in Exim) allows you configure the charset and associated content.
>
> Yes, part 1 is where I want the UTF-8 to go.
>
> I’ve not consulted the RFCs myself. Basically, I want the text after Exim
> shows the intended recipient address to be able to be any UTF-8 characters.
This may well be a feature request, I don't know whether Exim
supports this or not. As proof of concept (this is neither a
sufficient nor implied reason to consider Postfix, just an
example I happen to be familiar with):
http://www.postfix.org/bounce.5.html
TEMPLATE FILE FORMAT
...
failure_template = <<EOF
Charset: us-ascii
From: MAILER-DAEMON (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
Postmaster-Subject: Postmaster Copy: Undelivered Mail
This is the mail system at host $myhostname.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
EOF
...
TEMPLATE HEADER FORMAT
The first portion of a bounce template consists of optional template
headers. Some become message headers in the delivery status notifica-
tion; some control the formatting of that notification. Headers not
specified in a template will be left at their default value.
The following headers are supported:
Charset:
The MIME character set of the template message text. See the
"TEMPLATE MESSAGE TEXT FORMAT" description below.
TEMPLATE MESSAGE TEXT FORMAT
o If the template message text contains non-ASCII characters,
Postfix requires that the Charset: template header is updated.
Specify an appropriate superset of US-ASCII. A superset is
needed because Postfix appends ASCII text after the message tem-
plate when it sends a delivery status notification.
--
Viktor.