diff --git a/src/com/fsck/k9/mail/store/ImapResponseParser.java b/src/com/fsck/k9/mail/store/ImapResponseParser.java index cb0ba2c4f..6341b9520 100644 --- a/src/com/fsck/k9/mail/store/ImapResponseParser.java +++ b/src/com/fsck/k9/mail/store/ImapResponseParser.java @@ -79,7 +79,6 @@ public class ImapResponseParser { } } } - response.mCompleted = true; } /** @@ -480,33 +479,23 @@ public class ImapResponseParser { } /** - * Represents a single response from the IMAP server. Tagged responses will - * have a non-null tag. Untagged responses will have a null tag. The object - * will contain all of the available tokens at the time the response is - * received. In general, it will either contain all of the tokens of the - * response or all of the tokens up until the first LITERAL. If the object - * does not contain the entire response the caller must call more() to - * continue reading the response until more returns false. + * Represents a single response from the IMAP server. + * + *

+ * Tagged responses will have a non-null tag. Untagged responses will have a null tag. The + * object will contain all of the available tokens at the time the response is received. + *

*/ public class ImapResponse extends ImapList { /** * */ private static final long serialVersionUID = 6886458551615975669L; - private boolean mCompleted; private IImapResponseCallback mCallback; boolean mCommandContinuationRequested; String mTag; - public boolean more() throws IOException { - if (mCompleted) { - return false; - } - readTokens(this); - return true; - } - public String getAlertText() { if (size() > 1 && equalsIgnoreCase("[ALERT]", get(1))) { StringBuilder sb = new StringBuilder(); diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index cbd298002..ec217eab0 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -1450,8 +1450,6 @@ public class ImapStore extends Store { handleUntaggedResponse(response); } - while (response.more()); - } while (response.mTag == null); } catch (IOException ioe) { throw ioExceptionHandler(mConnection, ioe); @@ -1535,8 +1533,6 @@ public class ImapStore extends Store { handleUntaggedResponse(response); } - while (response.more()); - } while (response.mTag == null); } catch (IOException ioe) { throw ioExceptionHandler(mConnection, ioe); @@ -1877,7 +1873,6 @@ public class ImapStore extends Store { eolOut.write('\n'); eolOut.flush(); } - while (response.more()); } while (response.mTag == null); String newUid = getUidFromMessageId(message);