mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-12 10:42:21 -05:00
POP: fix 3613743, remove additional +OK during message RETR
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2130 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
8c1acc6cf0
commit
d8d73b122e
@ -202,15 +202,15 @@ public class PopConnection extends AbstractConnection {
|
||||
if (tokens.hasMoreTokens()) {
|
||||
try {
|
||||
int messageNumber = Integer.valueOf(tokens.nextToken()) - 1;
|
||||
sendOK("");
|
||||
DoubleDotOutputStream doubleDotOutputStream = new DoubleDotOutputStream(os);
|
||||
ExchangeSession.Message message = messages.get(messageNumber);
|
||||
|
||||
// load big messages in a separate thread
|
||||
os.write("+OK ".getBytes());
|
||||
os.flush();
|
||||
MessageLoadThread.loadMimeMessage(message, os);
|
||||
sendClient("");
|
||||
|
||||
DoubleDotOutputStream doubleDotOutputStream = new DoubleDotOutputStream(os);
|
||||
IOUtil.write(message.getRawInputStream(), doubleDotOutputStream);
|
||||
doubleDotOutputStream.close();
|
||||
if (Settings.getBooleanProperty("davmail.popMarkReadOnRetr")) {
|
||||
|
Loading…
Reference in New Issue
Block a user