mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 11:42:23 -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);
|
ExchangeSession.Message m = messages.get(message - 1);
|
||||||
sendOK("");
|
sendOK("");
|
||||||
DoubleDotOutputStream doubleDotOutputStream = new DoubleDotOutputStream(os);
|
DoubleDotOutputStream doubleDotOutputStream = new DoubleDotOutputStream(os);
|
||||||
IOUtil.write(m.getRawInputStream(), doubleDotOutputStream);
|
IOUtil.write(m.getRawInputStream(), new TopOutputStream(doubleDotOutputStream, lines));
|
||||||
doubleDotOutputStream.close();
|
doubleDotOutputStream.close();
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
sendERR("invalid command");
|
sendERR("invalid command");
|
||||||
|
Loading…
Reference in New Issue
Block a user