From: Wietse Venema (no email)
Date: Wed Aug 11 2004 - 17:42:34 EDT
Victor Duchovni:
> > What is a robust solution? Ideally the MTA operator simply specifies
> > a text file without any MIME crap, and Postfix does the right thing.
>
> The text file if not MIME encoded cannot specify its character-set,
> so this would be a separate configuration parameter:
>
> bounce_template_file = /etc/postfix/bounce_template
> bounce_template_charset = us-ascii
That is worse than having to specify it in the "sorry" file.
I'm thinking that only aneasy to use solution will be useful.
This is the simplest possible template file. It contains only
text and no MIME information.
+----------
|bla bla bla bla bla
|la bla bla bla bla
|blah bla bla bla bla
|la bla bla bla bla
+----------
It is's all 7bit, slap on default headers, transform into
quoted-printable and deliver:
+----------
|Content-Type: text/plain
|Content-Transfer-Encoding: quoted-printable
|
|bla bla bla bla bla
|la bla bla bla bla
|blah bla bla bla bla
|la bla bla bla bla
+----------
If it's not 7bit, the MTA operator has to supply charset info.
Here's a template file with 8-bit content:
+----------
|Content-Type: ignored/ignored; charset=STUFF; ignored...
|[other headers will be ignored]
|
|bla bla bla bla bla
|la bla bla bla bla
|blah bla bla bla bla
|la bla bla bla bla
+----------
This is transformed into:
+----------
|Content-Type: text/plain; charset=STUFF
|Content-Transfer-Encoding: quoted-printable
|
|bla bla bla bla bla
|la bla bla bla bla
|blah bla bla bla bla
|la bla bla bla bla
+----------
Anything missing from this scheme?
Wietse
|
|
|