mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-12 22:18:11 -05:00
IMAP: fix deleted flag handling over Webdav
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1244 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
34b1491ec9
commit
af54daf497
@ -1463,7 +1463,7 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
} else if ("bcc".equals(entry.getKey())) {
|
||||
list.add(Field.createDavProperty("bcc", entry.getValue()));
|
||||
} else if ("deleted".equals(entry.getKey())) {
|
||||
list.add(Field.createDavProperty("writedeleted", entry.getValue()));
|
||||
list.add(Field.createDavProperty("deleted", entry.getValue()));
|
||||
} else if ("datereceived".equals(entry.getKey())) {
|
||||
list.add(Field.createDavProperty("datereceived", entry.getValue()));
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ public class Field {
|
||||
createField("iconIndex", 0x1080, PropertyType.Long);//PR_ICON_INDEX
|
||||
createField(URN_SCHEMAS_HTTPMAIL, "read");
|
||||
//createField("read", 0x0e69, PropertyType.Boolean);//PR_READ
|
||||
createField("deleted", DistinguishedPropertySetType.Common, 0x8570, "deleted", PropertyType.Boolean);
|
||||
createField("deleted", DistinguishedPropertySetType.Common, 0x8570, "deleted", PropertyType.String);
|
||||
|
||||
//createField(URN_SCHEMAS_HTTPMAIL, "date");//PR_CLIENT_SUBMIT_TIME, 0x0039
|
||||
createField("date", 0x0e06, PropertyType.SystemTime);//PR_MESSAGE_DELIVERY_TIME
|
||||
|
@ -135,7 +135,7 @@ public class TestImap extends AbstractDavMailTestCase {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
mimeMessage.writeTo(baos);
|
||||
byte[] content = baos.toByteArray();
|
||||
writeLine(". APPEND testfolder (\\Draft) {" + content.length + '}');
|
||||
writeLine(". APPEND testfolder (\\Seen \\Draft) {" + content.length + '}');
|
||||
assertEquals("+ send literal data", readLine());
|
||||
writeLine(new String(content));
|
||||
assertEquals(". OK APPEND completed", readFullAnswer("."));
|
||||
|
Loading…
Reference in New Issue
Block a user