On Fri, 2007-08-03 at 01:04 +0800, Tan Shao Yi wrote:
Hi Timo,
I just tried your patch in hg and realised it also requires the "Content-Transfer-Encoding: 8bit" to be present.
I'm seeing some really bad mailers at my site that provide just header Content-Type: text/html; "charset=iso-8859-1" :(
Is there a possibility for us to accommodate such mails as MIME?
Well, I'm not sure how you'd want Dovecot to handle it. All of this basically only changes BODY and BODYSTRUCTURE replies. With Content-Type: header Dovecot returns its contents, but a missing Content-Transfer-Encoding: causes it to use 7bit as default:
- 1 FETCH (BODY ("text" "plain" ("charset" "iso-8859-1" "format" "flowed") NIL NIL "7bit" 623 22))
So are you saying that you'd want it to use 8bit as default?
Although if your Content-Type really has quotes around charset, that's the problem. It's completely broken then and Dovecot just ignores it:
- 1 FETCH (BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 623 22))
UW-IMAP handles it a bit differently:
- 1 FETCH (BODY ("TEXT" "PLAIN" ({20} "CHARSET=ISO-8859-1" "MISSING_PARAMETER_VALUE" "FORMAT" "flowed") NIL NIL "7BIT" 623 22))