Skip to content
Browse files

show EXISTS after append only when folder is selected (brendan); #984

  • Loading branch information...
1 parent 58c3595 commit 5ceb7f30377ae6e17b643d714b21143374c53f9b @pjstevns committed Sep 19, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/imapcommands.c
View
10 src/imapcommands.c
@@ -1281,9 +1281,7 @@ void _ic_append_enter(dm_thread_data *D)
TRACE(TRACE_DEBUG, "[%p] internal date [%s] found, next arg [%s]", self, internal_date, self->args[i]);
}
-
if (self->state == CLIENTSTATE_SELECTED && self->mailbox->id == mboxid) {
- dbmail_imap_session_mailbox_status(self, TRUE);
recent = FALSE;
}
@@ -1320,6 +1318,10 @@ void _ic_append_enter(dm_thread_data *D)
break;
}
+ if (message_id && self->state == CLIENTSTATE_SELECTED && self->mailbox->id == mboxid) {
+ dbmail_imap_session_mailbox_status(self, TRUE);
+ }
+
// MessageInfo
info = g_new0(MessageInfo,1);
info->uid = message_id;
@@ -1334,10 +1336,6 @@ void _ic_append_enter(dm_thread_data *D)
M = dbmail_imap_session_mbxinfo_lookup(self, mboxid);
MailboxState_addMsginfo(M, message_id, info);
- // show EXISTS and RECENT
- dbmail_imap_session_buff_printf(self, "* %u EXISTS\r\n", MailboxState_getExists(M));
- dbmail_imap_session_buff_printf(self, "* %u RECENT\r\n", MailboxState_getRecent(M));
-
SESSION_OK;
SESSION_RETURN;
}

0 comments on commit 5ceb7f3

Please sign in to comment.
Something went wrong with that request. Please try again.