dovecot: Fixed last change

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 18 00:52:55 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/401710b07708
changeset: 5765:401710b07708
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 18 00:52:48 2007 +0300
description:
Fixed last change

diffstat:

1 file changed, 10 insertions(+), 8 deletions(-)
src/imap/imap-sync.c |   18 ++++++++++--------

diffs (29 lines):

diff -r 4dcb14706561 -r 401710b07708 src/imap/imap-sync.c
--- a/src/imap/imap-sync.c	Mon Jun 18 00:34:20 2007 +0300
+++ b/src/imap/imap-sync.c	Mon Jun 18 00:52:48 2007 +0300
@@ -77,15 +77,17 @@ int imap_sync_deinit(struct imap_sync_co
 
 	t_push();
 
-	if (status.messages != ctx->messages_count && !ctx->no_newmail) {
+	if (!ctx->no_newmail) {
 		ctx->client->messages_count = status.messages;
-		client_send_line(ctx->client,
-			t_strdup_printf("* %u EXISTS", status.messages));
-	}
-	if (status.recent != ctx->client->recent_count && !ctx->no_newmail) {
-                ctx->client->recent_count = status.recent;
-		client_send_line(ctx->client,
-			t_strdup_printf("* %u RECENT", status.recent));
+		if (status.messages != ctx->messages_count) {
+			client_send_line(ctx->client,
+				t_strdup_printf("* %u EXISTS", status.messages));
+		}
+		if (status.recent != ctx->client->recent_count && !ctx->no_newmail) {
+			ctx->client->recent_count = status.recent;
+			client_send_line(ctx->client,
+				t_strdup_printf("* %u RECENT", status.recent));
+		}
 	}
 
 	t_pop();


More information about the dovecot-cvs mailing list