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:
parent
8b80ac6251
commit
8fa03fb247
@ -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('>');
|
||||||
@ -779,7 +784,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
if (token.startsWith("SENT")) {
|
if (token.startsWith("SENT")) {
|
||||||
searchAttribute = "urn:schemas:httpmail:date";
|
searchAttribute = "urn:schemas:httpmail:date";
|
||||||
} else {
|
} else {
|
||||||
searchAttribute = "DAV:getlastmodified";
|
searchAttribute = "DAV:getlastmodified";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (token.endsWith("ON")) {
|
if (token.endsWith("ON")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user