El día Wednesday, July 25, 2012 a las 09:44:47AM -0400, Mark E. Mallett
escribió:
> On Tue, Jul 24, 2012 at 04:16:56PM +0200, Matthias Apitz wrote:
> >
> > Hello,
> >
> > I know, this a bit off-topic, but maybe someone of the mail Gurus has an
> > idea where to look...
> >
> > We are producing mails with UTF-8 encoded text body and a header line
> > telling
> >
> > Content-type text/plain; charset=UTF-8
>
> I don't see the colon after "Content-type" but I'm assuming that's a
> typo. If it's not a typo, put it in :)
yep, this was a typo; I did not have the line for cut&paste (because it
gets stripped out), but I checked the original source file and it is
there;
> > The mail is prepared including To/From/Subject header as a file and gets
> > sent with
> >
> > sendmail -t < file
> >
> > This is working fine, but there are cases where some of the involved MTA
> > is removing the Content-type line from the mail and of course the UTF-8
> > encoded chars are looking like garbage in the MUA.
> >
> > Such a result looks like the attached header.
> >
> > Any idea why this happens or where to look for the reasons.
>
> Are you putting in a Mime-Version header field, or is that getting
> stripped too? (I don't see it in the example you appended)
No, should we?
I inserted now in addition:
MIME-Version: 1.0
In this case the mail arrives fine and the header gets re-written as:
Content-Type: text/plain;
charset="utf-8"
MIME-Version: 1.0
Note: the utf-8 is now in small letters and the line splitted into two;
i.e. the MTA rewrote the Content-Type header line;
Does this mean that we must use in addition "MIME-Version: 1.0" header?
Thanks
matthias
--
Matthias Apitz
e <[email protected]> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5