mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-06 03:08:02 -05:00
EWS: use UnindexedFieldURI for read flag
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1159 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
5a734d8a8a
commit
6ec5d21c1c
@ -18,9 +18,6 @@
|
||||
*/
|
||||
package davmail.exchange.ews;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
|
||||
/**
|
||||
* Extended MAPI property.
|
||||
*/
|
||||
|
@ -43,7 +43,7 @@ public class Field {
|
||||
FIELD_MAP.put("imapUid", new ExtendedFieldURI(0x0e23, ExtendedFieldURI.PropertyType.Integer));
|
||||
FIELD_MAP.put("flagStatus", new ExtendedFieldURI(0x1090, ExtendedFieldURI.PropertyType.Integer));
|
||||
FIELD_MAP.put("lastVerbExecuted", new ExtendedFieldURI(0x1081, ExtendedFieldURI.PropertyType.Integer));
|
||||
FIELD_MAP.put("read", new ExtendedFieldURI(0x0e69, ExtendedFieldURI.PropertyType.Boolean));
|
||||
FIELD_MAP.put("read", new UnindexedFieldURI("message:IsRead"));
|
||||
FIELD_MAP.put("messageSize", new ExtendedFieldURI(0x0e08, ExtendedFieldURI.PropertyType.Integer));
|
||||
FIELD_MAP.put("date", new ExtendedFieldURI(0x0e06, ExtendedFieldURI.PropertyType.SystemTime));
|
||||
FIELD_MAP.put("deleted", new ExtendedFieldURI(ExtendedFieldURI.DistinguishedPropertySetType.Common, 0x8570, ExtendedFieldURI.PropertyType.String));
|
||||
|
@ -18,9 +18,6 @@
|
||||
*/
|
||||
package davmail.exchange.ews;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
|
||||
/**
|
||||
* Field URI.
|
||||
*/
|
||||
|
@ -37,6 +37,9 @@ public class IndexedFieldURI implements FieldURI {
|
||||
}
|
||||
|
||||
public void appendValue(StringBuilder buffer, String itemType, String value) {
|
||||
if (fieldURI.startsWith("message")) {
|
||||
itemType = "Message";
|
||||
}
|
||||
appendTo(buffer);
|
||||
buffer.append("<t:");
|
||||
buffer.append(itemType);
|
||||
|
@ -18,9 +18,6 @@
|
||||
*/
|
||||
package davmail.exchange.ews;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
|
||||
/**
|
||||
* Unindexed Field URI
|
||||
*/
|
||||
@ -43,6 +40,9 @@ public class UnindexedFieldURI implements FieldURI {
|
||||
}
|
||||
|
||||
public void appendValue(StringBuilder buffer, String itemType, String value) {
|
||||
if (fieldURI.startsWith("message")) {
|
||||
itemType = "Message";
|
||||
}
|
||||
appendTo(buffer);
|
||||
buffer.append("<t:");
|
||||
buffer.append(itemType);
|
||||
|
Loading…
Reference in New Issue
Block a user