Mathijs den Burger
2006-Sep-11 14:41 UTC
[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 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
Jean-Eudes ONFRAY
2006-Sep-11 15:16 UTC
[Dovecot] Re : Wrong content-type reported for messages with only atext/html body?
--- 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