mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-06 03:08: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) {
|
||||
if (fieldURI.startsWith("message")) {
|
||||
if (fieldURI.startsWith("message") && itemType != null) {
|
||||
itemType = "Message";
|
||||
}
|
||||
appendTo(buffer);
|
||||
buffer.append("<t:");
|
||||
buffer.append(itemType);
|
||||
buffer.append('>');
|
||||
if (itemType != null) {
|
||||
appendTo(buffer);
|
||||
buffer.append("<t:");
|
||||
buffer.append(itemType);
|
||||
buffer.append('>');
|
||||
}
|
||||
buffer.append("<t:");
|
||||
buffer.append(fieldName);
|
||||
buffer.append('>');
|
||||
@ -59,9 +61,11 @@ public class UnindexedFieldURI implements FieldURI {
|
||||
buffer.append("</t:");
|
||||
buffer.append(fieldName);
|
||||
buffer.append('>');
|
||||
buffer.append("</t:");
|
||||
buffer.append(itemType);
|
||||
buffer.append('>');
|
||||
if (itemType != null) {
|
||||
buffer.append("</t:");
|
||||
buffer.append(itemType);
|
||||
buffer.append('>');
|
||||
}
|
||||
}
|
||||
|
||||
public String getResponseName() {
|
||||
|
@ -26,16 +26,11 @@ import javax.mail.internet.MimeMessage;
|
||||
import java.io.IOException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: mguessan
|
||||
* Date: 5 juil. 2010
|
||||
* Time: 16:17:45
|
||||
* To change this template use File | Settings | File Templates.
|
||||
* Test message flag update
|
||||
*/
|
||||
public class TestExchangeSessionMessageFlags extends AbstractExchangeSessionTestCase {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user