Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5765:401710b07708 HEAD
Fixed last change
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 18 Jun 2007 00:52:48 +0300 |
parents | 4dcb14706561 |
children | 9ebd052d07b0 |
files | src/imap/imap-sync.c |
diffstat | 1 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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();