From ce05e794d5df02e9aca435464f595f1f099e182c Mon Sep 17 00:00:00 2001 From: mguessan Date: Wed, 10 Aug 2011 20:50:13 +0000 Subject: [PATCH] IMAP: fix regression in EwsExchangeSession.createMessage git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1772 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EwsExchangeSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/ews/EwsExchangeSession.java b/src/java/davmail/exchange/ews/EwsExchangeSession.java index 40e30a9f..125dbacd 100644 --- a/src/java/davmail/exchange/ews/EwsExchangeSession.java +++ b/src/java/davmail/exchange/ews/EwsExchangeSession.java @@ -34,7 +34,6 @@ import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.ByteArrayRequestEntity; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.commons.httpclient.methods.PostMethod; -import org.apache.commons.httpclient.util.URIUtil; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; @@ -400,6 +399,7 @@ public class EwsExchangeSession extends ExchangeSession { @Override public void createMessage(String folderPath, String messageName, HashMap properties, MimeMessage mimeMessage) throws IOException { EWSMethod.Item item = new EWSMethod.Item(); + item.type = "Message"; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { mimeMessage.writeTo(baos);