Looks like there's multiple problems here..
1. Linecount (fixed)
2. charset=us-ascii
3. single html part within the multipart
I've gotten readable email with charset=us-ascii on all text parts but only when there is no more than a single text/html part. If I have a message with multiple text/html parts, then WM5 fails to read it if it comes from zimbra but works with dovecot. The only other difference looking at the imap return using the exact fetch command that the WM5 client uses (used tcpflow) is that zimbra returns
Code:
("boundary" "__________MIMEboundary__________") after "alternative" whereas dovecot does not.
Here is the full return with Zimbra:
Code:
08 fetch 9895 (INTERNALDATE UID FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT MESSAGE-ID CONTENT-TYPE X-MS-TNEF-Correlator CONTENT-CLASS IMPORTANCE)] BODYSTRUCTURE)
* 9895 FETCH (UID 9996 FLAGS (\Seen) INTERNALDATE "13-Dec-2006 16:52:38 -0800" RFC822.SIZE 8713 BODYSTRUCTURE (("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 4503 225 NIL NIL NIL)("text" "html" ("charset" "us-ascii") NIL NIL "7bit" 1242 30 NIL NIL NIL) "alternative" ("boundary" "__________MIMEboundary__________") NIL NIL) BODY[HEADER.FIELDS (DATE FROM SUBJECT MESSAGE-ID CONTENT-TYPE X-MS-TNEF-CORRELATOR CONTENT-CLASS IMPORTANCE)] {289}
Date: Wed, 13 Dec 2006 16:52:36 -0800 (PST)
From: Super-User <root@somewhere.com>
Message-Id: <200612140052.kBE0qarT005135@somewhere.com>
Subject: test old results 6
Content-Type: multipart/alternative;
boundary="__________MIMEboundary__________"
)
* 9865 FETCH (FLAGS (\Seen))
08 OK Fetch completed. With dovecot:
Code:
08 fetch 5394 (INTERNALDATE UID FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT MESSAGE-ID CONTENT-TYPE X-MS-TNEF-Correlator CONTENT-CLASS IMPORTANCE)] BODYSTRUCTURE)
* 5394 FETCH (UID 39257 INTERNALDATE "13-Dec-2006 16:52:36 -0800" RFC822.SIZE 8129 BODYSTRUCTURE (("TEXT" "HTML" ("CHARSET" "us-ascii") NIL NIL "7BIT" 4503 225)("TEXT" "HTML" ("CHARSET" "us-ascii") NIL NIL "7BIT" 1242 31) "ALTERNATIVE") BODY[HEADER.FIELDS (DATE FROM SUBJECT MESSAGE-ID CONTENT-TYPE X-MS-TNEF-CORRELATOR CONTENT-CLASS IMPORTANCE)] {290}
Date: Wed, 13 Dec 2006 16:52:36 -0800 (PST)
From: Super-User <root@somewhere.com>
Message-Id: <200612140052.kBE0qarT005135@somewhere.com>
Subject: test old results 6
Content-Type: multipart/alternative;
boundary="__________MIMEboundary__________"
FLAGS (\Seen))
08 OK FETCH completed Perhaps the ("boundary" "__________MIMEboundary__________") is causing a problem but I have not figured out a way to test this.
I've checked RFC 2060 and RFC 3501 and neither mentions the boundary parameter. Also checked out RFC 1341 which defines multipart content-type and it's subtypes... will check some other possible causes around that.