My code already sets LastVerbExecutionTime, property 0x1082
It's like this:
if ((flags & (MessageFlags.ANSWERED | MessageFlags.FORWARDED)) != 0) {
EwsPropHelper.updateExtendedPropBegin(sb, EwsMessageCmd.BEGIN_RAW_ICON_PROP);
if ((flags & MessageFlags.ANSWERED) != 0) {
sb.append(EwsConstants.PR_ICON_INDEX_REPLIED);
} else {
sb.append(EwsConstants.PR_ICON_INDEX_FORWARDED);
}
EwsPropHelper.updateExtendedPropEnd(sb);
EwsPropHelper.updateExtendedPropBegin(sb, EwsMessageCmd.BEGIN_RAW_LAST_VERB_EXECUTED_PROP);
if ((flags & MessageFlags.ANSWERED) != 0) {
sb.append(EwsConstants.EXCHIVERB_REPLYTOSENDER);
} else {
sb.append(EwsConstants.EXCHIVERB_FORWARD);
}
EwsPropHelper.updateExtendedPropEnd(sb);
final long now = System.currentTimeMillis();
EwsPropHelper.updateExtendedPropBegin(sb, EwsMessageCmd.BEGIN_RAW_LAST_VERB_TIME_PROP);
EwsDateTime.append(sb, now);
EwsPropHelper.updateExtendedPropEnd(sb);
where:
public static final String BEGIN_RAW_LAST_VERB_EXECUTED_PROP =
"PropertyTag=\"0x1081\" PropertyType=\"Integer\"";
public static final String BEGIN_RAW_LAST_VERB_TIME_PROP =
"PropertyTag=\"0x1082\" PropertyType=\"SystemTime\"";
public static final int EXCHIVERB_REPLYTOSENDER = 102;
public static final int EXCHIVERB_FORWARD = 104;
Re: Exchange ActiveSync protocol, but does Exchange Web Services
Makes no difference here. Both protocols are thin "mappings" of Exchange's view of the world.