projects
/
org.ibex.mail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2c0573
)
fix line end detection bug
author
adam
<adam@megacz.com>
Wed, 7 Jul 2004 08:57:34 +0000
(08:57 +0000)
committer
adam
<adam@megacz.com>
Wed, 7 Jul 2004 08:57:34 +0000
(08:57 +0000)
darcs-hash:
20040707085734
-5007d-
2176dcb2cba6cdfe68a7f10379f12a97e8cfd167
.gz
src/org/ibex/mail/protocol/IMAP.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/mail/protocol/IMAP.java
b/src/org/ibex/mail/protocol/IMAP.java
index
a808c6b
..
df60cce
100644
(file)
--- a/
src/org/ibex/mail/protocol/IMAP.java
+++ b/
src/org/ibex/mail/protocol/IMAP.java
@@
-660,7
+660,7
@@
public class IMAP {
stream.println("+ Ready when you are...");
int octets = Integer.parseInt(sb.toString());
while(stream.peekc() == ' ') stream.getc(); // whitespace
- while (stream.getc() != '\n' && stream.getc() != '\r') { }
+ while(stream.peekc() == '\n' || stream.peekc() == '\r') stream.getc();
byte[] bytes = new byte[octets];
int numread = 0;
while(numread < bytes.length) {