From efe80418ac18247c04ae209ded6ff7c66a0e4c10 Mon Sep 17 00:00:00 2001 From: mguessan Date: Tue, 20 Jul 2010 09:11:45 +0000 Subject: [PATCH] POP: fix regression in TOP command git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1214 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/pop/PopConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/pop/PopConnection.java b/src/java/davmail/pop/PopConnection.java index 31260d50..aa5f0e70 100644 --- a/src/java/davmail/pop/PopConnection.java +++ b/src/java/davmail/pop/PopConnection.java @@ -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");