[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IMAP Errors after upgrade



I applied it to the CVS checkout but now I get this

*elmo-imap47* OK arrived
[10:43:45] <- elmo-imap48 uid search return (all) uid 1:999999999 undeleted
[10:43:46] -> elmo-imap48 BAD The specified message set is invalid.
*elmo-imap48* BAD arrived
[10:43:46] => ((bad (nil "The specified message set is invalid.")) (ok nil))
[10:43:46] <- elmo-imap49 uid search return (all) uid 1:1 undeleted
[10:43:46] -> elmo-imap49 BAD The specified message set is invalid.
*elmo-imap49* BAD arrived
[10:43:46] => ((bad (nil "The specified message set is invalid.")))

Vitaly Mayatskikh wrote:
At Wed, 24 Feb 2010 09:55:19 -0800, docgnome wrote:
It's an Exchange 2007 server actually.

I was expecting that... Can you try to apply this patch? This is not
an ideal solution, but I don't have access to Exchange and can't
figure out how to deal with it.

--- elmo/elmo-imap4.el	22 Jan 2010 15:42:07 -0000	1.182
+++ elmo/elmo-imap4.el	24 Feb 2010 18:21:55 -0000
@@ -1997,7 +2006,7 @@ Return nil if no complete line has arriv
   ((folder elmo-imap4-folder) &optional enable-killed)
   (let* ((old (elmo-msgdb-list-messages (elmo-folder-msgdb folder)))
 	 (new (elmo-imap4-folder-list-range
-	       folder (1+ (or (elmo-folder-get-info-max folder) 0)) "*"))
+	       folder (1+ (or (elmo-folder-get-info-max folder) 0)) "999999999"))
 	 (united-old-new (elmo-union old new)))
     (if (= (length united-old-new) (or (elmo-folder-get-info-length folder) 0))
 	united-old-new