changeset 7534:9c781d042afe HEAD

LIST X-STATUS: Send LIST reply before STATUS reply.
author Timo Sirainen <tss@iki.fi>
date Sun, 25 May 2008 00:34:03 +0300
parents 7690cdabb3f8
children 0b9a5a7a0b3e
files src/imap/cmd-list.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-list.c	Sat May 24 16:57:28 2008 +0300
+++ b/src/imap/cmd-list.c	Sun May 25 00:34:03 2008 +0300
@@ -347,14 +347,14 @@
 		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;
 		}