You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2011/01/15 21:46:54 UTC
svn commit: r1059410 -
/james/imap/branches/nio-refactoring/message/src/main/java/org/apache/james/imap/decode/parser/AppendCommandParser.java
Author: norman
Date: Sat Jan 15 20:46:54 2011
New Revision: 1059410
URL: http://svn.apache.org/viewvc?rev=1059410&view=rev
Log:
push in CRLF too
Modified:
james/imap/branches/nio-refactoring/message/src/main/java/org/apache/james/imap/decode/parser/AppendCommandParser.java
Modified: james/imap/branches/nio-refactoring/message/src/main/java/org/apache/james/imap/decode/parser/AppendCommandParser.java
URL: http://svn.apache.org/viewvc/james/imap/branches/nio-refactoring/message/src/main/java/org/apache/james/imap/decode/parser/AppendCommandParser.java?rev=1059410&r1=1059409&r2=1059410&view=diff
==============================================================================
--- james/imap/branches/nio-refactoring/message/src/main/java/org/apache/james/imap/decode/parser/AppendCommandParser.java (original)
+++ james/imap/branches/nio-refactoring/message/src/main/java/org/apache/james/imap/decode/parser/AppendCommandParser.java Sat Jan 15 20:46:54 2011
@@ -38,7 +38,6 @@ import org.apache.james.imap.decode.Imap
import org.apache.james.imap.decode.DecodingException;
import org.apache.james.imap.decode.base.AbstractImapCommandParser;
import org.apache.james.imap.message.request.AppendRequest;
-import org.apache.james.imap.message.request.ContinuationRequest;
/**
* Parses APPEND command
@@ -117,6 +116,18 @@ public class AppendCommandParser extends
out.write((byte)request.consume());
bytes++;
}
+
+ // as we push data without delimiters we need to put them in back
+ if (bytes != size) {
+ out.write('\r');
+ bytes++;
+ }
+
+ if (bytes != size) {
+ out.write('\n');
+ bytes++;
+ }
+
if (bytes == size) {
request.eol();
session.setAttribute(ImapConstants.NEXT_DECODER, null);
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org