dovecot-1.2: imap: Some text is required after resp-text-codes (...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 7 00:19:06 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/56e619176787
changeset: 9357:56e619176787
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 06 17:19:00 2009 -0400
description:
imap: Some text is required after resp-text-codes (HIGHESTMODSEQ/CLOSED).

diffstat:

3 files changed, 5 insertions(+), 4 deletions(-)
src/imap/client.c     |    2 +-
src/imap/cmd-select.c |    5 +++--
src/imap/imap-sync.c  |    2 +-

diffs (46 lines):

diff -r 7639914c5cde -r 56e619176787 src/imap/client.c
--- a/src/imap/client.c	Fri Sep 04 15:49:48 2009 -0400
+++ b/src/imap/client.c	Sun Sep 06 17:19:00 2009 -0400
@@ -878,7 +878,7 @@ void client_enable(struct client *client
 		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));
 	}
 }
diff -r 7639914c5cde -r 56e619176787 src/imap/cmd-select.c
--- a/src/imap/cmd-select.c	Fri Sep 04 15:49:48 2009 -0400
+++ b/src/imap/cmd-select.c	Sun Sep 06 17:19:00 2009 -0400
@@ -311,7 +311,7 @@ select_open(struct imap_select_context *
 				 "* 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;
 	}
@@ -369,7 +369,8 @@ bool cmd_select_full(struct client_comma
 		if (mailbox_close(&box) < 0)
 			client_send_untagged_storage_error(client, old_storage);
 		/* CLOSED response is required by QRESYNC */
-		client_send_line(client, "* OK [CLOSED]");
+		client_send_line(client,
+				 "* OK [CLOSED] Previous mailbox closed.");
 	}
 
 	if (ctx->condstore) {
diff -r 7639914c5cde -r 56e619176787 src/imap/imap-sync.c
--- a/src/imap/imap-sync.c	Fri Sep 04 15:49:48 2009 -0400
+++ b/src/imap/imap-sync.c	Sun Sep 06 17:19:00 2009 -0400
@@ -199,7 +199,7 @@ imap_sync_send_highestmodseq(struct imap
 	} 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));
 	}
 


More information about the dovecot-cvs mailing list