diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 7eba22d9..13454b39 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -503,7 +503,7 @@ public class ImapConnection extends AbstractConnection { } buffer.append(" RFC822.SIZE ").append(rfc822size).append(" ").append("BODY[]"); // partial - if (ltIndex >= 0) { + if (startIndex > 0) { buffer.append('<').append(startIndex).append('>'); } buffer.append(" {").append(baos.size()).append("}");