[Dovecot] Wrong content-type reported for messages with only a text/html body?
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@izecom.com Subject: test To: foobar@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
--- Message d'origine ---
De : Mathijs den Burger mathijs@izecom.com À : dovecot@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@izecom.com Subject: test To: foobar@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@izecom.com Subject: test To: foobar@example.com MIME-Version: 1.0 Content-Type: text/html;
test
Regards, Jean-Eudes
participants (2)
-
Jean-Eudes ONFRAY
-
Mathijs den Burger