1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 19:22:22 -05:00

IMAP: send BODY[TEXT] for BODY.PEEK[TEXT] request, may improve iPhone support

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@692 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-09-02 21:57:35 +00:00
parent 8b80ac6251
commit 8fa03fb247

View File

@ -558,7 +558,12 @@ public class ImapConnection extends AbstractConnection {
// Apple Mail: need to build full bodystructure // Apple Mail: need to build full bodystructure
appendBodyStructure(buffer, baos); appendBodyStructure(buffer, baos);
} }
buffer.append(" RFC822.SIZE ").append(rfc822size).append(' ').append("BODY[]"); buffer.append(" RFC822.SIZE ").append(rfc822size).append(' ');
if ("BODY.PEEK[TEXT]".equals(param)) {
buffer.append("BODY[TEXT]");
} else {
buffer.append("BODY[]");
}
// partial // partial
if (startIndex > 0) { if (startIndex > 0) {
buffer.append('<').append(startIndex).append('>'); buffer.append('<').append(startIndex).append('>');