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

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
This commit is contained in:
mguessan 2010-10-19 19:25:54 +00:00
parent e517cc0433
commit 8126642f15

View File

@ -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