Mercurial > dovecot > core-2.2
changeset 9884:38fbf201824c HEAD
imap: Some text is required after resp-text-codes (HIGHESTMODSEQ/CLOSED).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Sep 2009 17:20:04 -0400 |
parents | 87fed6f0bbfe |
children | af8424c95825 |
files | src/imap/cmd-select.c src/imap/imap-client.c src/imap/imap-sync.c |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-select.c Sun Sep 06 16:09:30 2009 -0400 +++ b/src/imap/cmd-select.c Sun Sep 06 17:20:04 2009 -0400 @@ -321,7 +321,7 @@ "* OK [NOMODSEQ] No permanent modsequences"); } else { client_send_line(client, - t_strdup_printf("* OK [HIGHESTMODSEQ %llu]", + t_strdup_printf("* OK [HIGHESTMODSEQ %llu] Highest", (unsigned long long)status.highest_modseq)); client->sync_last_full_modseq = status.highest_modseq; } @@ -379,7 +379,8 @@ mailbox_close(&box); /* CLOSED response is required by QRESYNC */ - client_send_line(client, "* OK [CLOSED]"); + client_send_line(client, + "* OK [CLOSED] Previous mailbox closed."); } if (ctx->condstore) {
--- a/src/imap/imap-client.c Sun Sep 06 16:09:30 2009 -0400 +++ b/src/imap/imap-client.c Sun Sep 06 17:20:04 2009 -0400 @@ -900,7 +900,7 @@ mailbox_get_status(client->mailbox, STATUS_HIGHESTMODSEQ, &status); client_send_line(client, t_strdup_printf( - "* OK [HIGHESTMODSEQ %llu]", + "* OK [HIGHESTMODSEQ %llu] Highest", (unsigned long long)status.highest_modseq)); } }
--- a/src/imap/imap-sync.c Sun Sep 06 16:09:30 2009 -0400 +++ b/src/imap/imap-sync.c Sun Sep 06 17:20:04 2009 -0400 @@ -199,7 +199,7 @@ } else { /* send an untagged OK reply */ client_send_line(client, t_strdup_printf( - "* OK [HIGHESTMODSEQ %llu]", + "* OK [HIGHESTMODSEQ %llu] Highest", (unsigned long long)send_modseq)); }