From 8126642f155513022d68aa0aaffb73cee53cd4ce Mon Sep 17 00:00:00 2001 From: mguessan Date: Tue, 19 Oct 2010 19:25:54 +0000 Subject: [PATCH] IMAP: Fix append with no optional parameters git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1510 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 5c62a504..e677c315 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -81,7 +81,7 @@ public class ImapConnection extends AbstractConnection { IMAPTokenizer tokens; try { ExchangeSessionFactory.checkConfig(); - sendClient("* OK [" + capabilities + "] IMAP4rev1 DavMail " + DavGateway.getCurrentVersion() + "server ready"); + sendClient("* OK [" + capabilities + "] IMAP4rev1 DavMail " + DavGateway.getCurrentVersion() + " server ready"); for (; ;) { line = readClient(); // unable to read line, connection closed ? @@ -466,7 +466,7 @@ public class ImapConnection extends AbstractConnection { properties.put("datereceived", dateFormatter.format(dateReceived)); } - int size = Integer.parseInt(nextToken); + int size = Integer.parseInt(removeQuotes(nextToken)); sendClient("+ send literal data"); byte[] buffer = in.readContent(size); // empty line