Fix sendCommand line splitup for some imap proxys

When sending a command it would be sent like this:
PKG1: 1 STARTTLS
PKG2: \r\n

Some imap proxys (maybe from Fortinet?) don't accept commands across packets:
PKG1: 1 STARTTLS\r\n
This commit is contained in:
Dominik Heidler 2014-02-28 17:02:05 +01:00 committed by cketti
parent ca16f36db9
commit dcd1e63812
1 changed files with 1 additions and 3 deletions

View File

@ -2780,10 +2780,8 @@ public class ImapStore extends Store {
try {
open();
String tag = Integer.toString(mNextCommandTag++);
String commandToSend = tag + " " + command;
String commandToSend = tag + " " + command + "\r\n";
mOut.write(commandToSend.getBytes());
mOut.write('\r');
mOut.write('\n');
mOut.flush();
if (K9.DEBUG && K9.DEBUG_PROTOCOL_IMAP) {