mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-07 11:48:02 -05:00
EWS: fix bug in UnindexedFieldURI
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1171 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
bf5c6f81a6
commit
6a6bb21450
@ -45,13 +45,15 @@ public class UnindexedFieldURI implements FieldURI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void appendValue(StringBuilder buffer, String itemType, String value) {
|
public void appendValue(StringBuilder buffer, String itemType, String value) {
|
||||||
if (fieldURI.startsWith("message")) {
|
if (fieldURI.startsWith("message") && itemType != null) {
|
||||||
itemType = "Message";
|
itemType = "Message";
|
||||||
}
|
}
|
||||||
appendTo(buffer);
|
if (itemType != null) {
|
||||||
buffer.append("<t:");
|
appendTo(buffer);
|
||||||
buffer.append(itemType);
|
buffer.append("<t:");
|
||||||
buffer.append('>');
|
buffer.append(itemType);
|
||||||
|
buffer.append('>');
|
||||||
|
}
|
||||||
buffer.append("<t:");
|
buffer.append("<t:");
|
||||||
buffer.append(fieldName);
|
buffer.append(fieldName);
|
||||||
buffer.append('>');
|
buffer.append('>');
|
||||||
@ -59,9 +61,11 @@ public class UnindexedFieldURI implements FieldURI {
|
|||||||
buffer.append("</t:");
|
buffer.append("</t:");
|
||||||
buffer.append(fieldName);
|
buffer.append(fieldName);
|
||||||
buffer.append('>');
|
buffer.append('>');
|
||||||
buffer.append("</t:");
|
if (itemType != null) {
|
||||||
buffer.append(itemType);
|
buffer.append("</t:");
|
||||||
buffer.append('>');
|
buffer.append(itemType);
|
||||||
|
buffer.append('>');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getResponseName() {
|
public String getResponseName() {
|
||||||
|
@ -26,16 +26,11 @@ import javax.mail.internet.MimeMessage;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by IntelliJ IDEA.
|
* Test message flag update
|
||||||
* User: mguessan
|
|
||||||
* Date: 5 juil. 2010
|
|
||||||
* Time: 16:17:45
|
|
||||||
* To change this template use File | Settings | File Templates.
|
|
||||||
*/
|
*/
|
||||||
public class TestExchangeSessionMessageFlags extends AbstractExchangeSessionTestCase {
|
public class TestExchangeSessionMessageFlags extends AbstractExchangeSessionTestCase {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user