]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
LIST X-STATUS: Send LIST reply before STATUS reply.
authorTimo Sirainen <tss@iki.fi>
Sat, 24 May 2008 21:34:03 +0000 (00:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 24 May 2008 21:34:03 +0000 (00:34 +0300)
--HG--
branch : HEAD

src/imap/cmd-list.c

index 1ae801479b8ed5861e941a395b0444e4a3ad34fd..f08fdb7a4b207a626b41e89807cacd3f386ebcbf 100644 (file)
@@ -347,14 +347,14 @@ list_namespace_mailboxes(struct cmd_list_context *ctx)
                imap_quote_append_string(str, name, FALSE);
                mailbox_childinfo2str(ctx, str, flags);
 
+               ret = client_send_line(ctx->cmd->client, str_c(str));
                if (ctx->status_items != 0 &&
                    (flags & (MAILBOX_NONEXISTENT | MAILBOX_NOSELECT)) == 0) {
                        T_BEGIN {
                                list_send_status(ctx, name);
                        } T_END;
                }
-
-               if (client_send_line(ctx->cmd->client, str_c(str)) == 0) {
+               if (ret == 0) {
                        /* buffer is full, continue later */
                        return 0;
                }