1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

IMAP: fix regression in EwsExchangeSession.createMessage

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1772 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-08-10 20:50:13 +00:00
parent 1569081efe
commit ce05e794d5

View File

@ -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<String, String> properties, MimeMessage mimeMessage) throws IOException {
EWSMethod.Item item = new EWSMethod.Item();
item.type = "Message";
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
mimeMessage.writeTo(baos);