mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
POP: fix regression in TOP command
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1214 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
0eeefb9098
commit
efe80418ac
@ -235,7 +235,7 @@ public class PopConnection extends AbstractConnection {
|
||||
ExchangeSession.Message m = messages.get(message - 1);
|
||||
sendOK("");
|
||||
DoubleDotOutputStream doubleDotOutputStream = new DoubleDotOutputStream(os);
|
||||
IOUtil.write(m.getRawInputStream(), doubleDotOutputStream);
|
||||
IOUtil.write(m.getRawInputStream(), new TopOutputStream(doubleDotOutputStream, lines));
|
||||
doubleDotOutputStream.close();
|
||||
} catch (NumberFormatException e) {
|
||||
sendERR("invalid command");
|
||||
|
Loading…
Reference in New Issue
Block a user