]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Some text is required after resp-text-codes (HIGHESTMODSEQ/CLOSED).
authorTimo Sirainen <tss@iki.fi>
Sun, 6 Sep 2009 21:20:04 +0000 (17:20 -0400)
committerTimo Sirainen <tss@iki.fi>
Sun, 6 Sep 2009 21:20:04 +0000 (17:20 -0400)
--HG--
branch : HEAD

src/imap/cmd-select.c
src/imap/imap-client.c
src/imap/imap-sync.c

index 6f27f9476906731be09c10e7ffbad60decda9901..35968a82a843bef26be48236e5fb68c9ea5f541a 100644 (file)
@@ -321,7 +321,7 @@ select_open(struct imap_select_context *ctx, const char *mailbox, bool readonly)
                                 "* 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 @@ bool cmd_select_full(struct client_command_context *cmd, bool readonly)
 
                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) {
index ecd6a932797aa156cdf52672deea167075ad356f..3dc4dabc0a28a44a545b8fcd80c30d2268da883f 100644 (file)
@@ -900,7 +900,7 @@ void client_enable(struct client *client, enum mailbox_feature features)
                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));
        }
 }
index bc9d4215ba007e0842dd5bea2a21cbf5fa91de56..77923490ff7055b385934fec800b6a466c99d495 100644 (file)
@@ -199,7 +199,7 @@ imap_sync_send_highestmodseq(struct imap_sync_context *ctx,
        } 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));
        }