[Dovecot] Re : Wrong content-type reported for messages with only atext/html body?
Jean-Eudes ONFRAY
je.onfray at mediation-telecom.com
Mon Sep 11 18:16:25 EEST 2006
--- Message d'origine ---
> De : Mathijs den Burger <mathijs at izecom.com>
> À : dovecot at dovecot.org
> Sujet : [Dovecot] Wrong content-type reported for messages with only
> atext/html body?
> Date : lun 11 sep 2006 16:41:43 CEST
>
> Hi all,
>
> It looks like Dovecot 1.0rc7 reports the wrong content-type for messages
> with only a text/html body. An example of such a message is:
>
> ---
> From: mathijs at izecom.com
> Subject: test
> To: foobar at example.com
> Content-Type: text/html;
>
> test
>
> ---
>
> When I talk IMAP to Dovecot directly using telnet and fetch the
> bodystructure of this message, Dovecot replies:
>
> * 1 FETCH (BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL
> "7bit" 6 1 NIL NIL NIL))
>
> I guess that should be 'text/html', not 'text/plain'.
> Is this a bug or am I missing something here?
>
> FYI: I run Dovecot on Debian stable with version 1.0rc7 compiled from
> source.
>
> cheers,
> Mathijs
>
Hi,
Content-type is always text/plain if there's no MIME-Version header
(probably described in RFC1341)
This will work as expected:
--
From: mathijs at izecom.com
Subject: test
To: foobar at example.com
MIME-Version: 1.0
Content-Type: text/html;
test
--
Regards,
Jean-Eudes
More information about the dovecot
mailing list