mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
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:
parent
1091e7af99
commit
8bfd6ca3e0
@ -2779,10 +2779,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user