From: Timo Sirainen Date: Sat, 24 May 2008 21:34:03 +0000 (+0300) Subject: LIST X-STATUS: Send LIST reply before STATUS reply. X-Git-Tag: 1.1.rc6~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd5a3d256bceadbd591a13493ac04683f9c8e509;p=thirdparty%2Fdovecot%2Fcore.git LIST X-STATUS: Send LIST reply before STATUS reply. --HG-- branch : HEAD --- diff --git a/src/imap/cmd-list.c b/src/imap/cmd-list.c index 1ae801479b..f08fdb7a4b 100644 --- a/src/imap/cmd-list.c +++ b/src/imap/cmd-list.c @@ -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; }