From e3d0b5046b99e6852280cd734c2d4b3a1d10b51c Mon Sep 17 00:00:00 2001 From: Vitaly Mayatskikh Date: Mon, 27 Oct 2008 13:53:38 +0100 Subject: [PATCH] Fixed bug: search for new messages in merge updates from last_know_msg + 1. When local folder info doesn't contain information about messages, it returns max known number of message = 0. This will malform merge update query (uid 0 is not valid). So, use uid + 1. --- elmo/elmo-imap4.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elmo/elmo-imap4.el b/elmo/elmo-imap4.el index 0a6ae79..09f2891 100644 --- a/elmo/elmo-imap4.el +++ b/elmo/elmo-imap4.el @@ -2058,7 +2058,7 @@ Return nil if no complete line has arrived." (eq (car (car killed)) 1)) ;; What about elmo-imap4-use-uid? (format "uid %d:*" (cdr (car killed))) - (format "uid %d:*" (elmo-folder-get-info-max folder)))) + (format "uid %d:*" (1+ (elmo-folder-get-info-max folder))))) " undeleted")))) (union old new))) -- 2.11.4.GIT