From 6fdb9350ecdfd0dc7f65975ac9b4d6ba00161b19 Mon Sep 17 00:00:00 2001
From: Sunil Shetye <sunilshetye@rocketmail.com>
Date: Tue, 3 May 2011 01:06:34 +0530
Subject: Do not search for UNSEEN messages in ranges.

Add gen_recv_split() to split long protocol messages when the message prefix matches

Order of search commands:

IMAP> A010 SEARCH UNSEEN UNDELETED     (IMAP4 or higher)
IMAP> A011 SEARCH UNSEEN
IMAP> A012 FETCH 1:n FLAGS
---
 NEWS | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'NEWS')

diff --git a/NEWS b/NEWS
index 107c5f82..86657c13 100644
--- a/NEWS
+++ b/NEWS
@@ -70,6 +70,10 @@ fetchmail-6.3.20 (not yet released):
 
 # BUG FIXES
 * Call strlen() only once when removing CRLF from a line. (Sunil Shetye)
+* Do not search for UNSEEN messages in ranges. Usually, there are very few new
+  messages and most of the range searches result in nothing. Instead, split the
+  long response to make the IMAP driver think that there are multiple lines of
+  response. (Sunil Shetye)
 
 # TRANSLATION UPDATES
   [ja]    Japanese (Takeshi Hamasaki)
-- 
cgit v1.2.3