Skip to content

Commit

Permalink
fix bug #864
Browse files Browse the repository at this point in the history
  • Loading branch information
pjstevns committed Oct 29, 2010
1 parent ac2cebb commit 03f08ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dbmail-imapsession.c
Original file line number Diff line number Diff line change
Expand Up @@ -1438,8 +1438,8 @@ int dbmail_imap_session_mailbox_status(ImapSession * self, gboolean update)
char *oldflags, *newflags;

M = self->mailbox->mbstate;
oldflags = MailboxState_flags(M);
oldseq = MailboxState_getSeq(M);
oldflags = MailboxState_flags(M);
oldexists = MailboxState_getExists(M);
oldrecent = MailboxState_getRecent(M);
olduidnext = MailboxState_getUidnext(M);
Expand Down Expand Up @@ -1472,8 +1472,10 @@ int dbmail_imap_session_mailbox_status(ImapSession * self, gboolean update)

// command specific overrides
switch (self->command_type) {
case IMAP_COMM_SELECT:
case IMAP_COMM_EXAMINE:
case IMAP_COMM_SELECT:
case IMAP_COMM_SEARCH:
case IMAP_COMM_SORT:
showexists = showrecent = TRUE;
break;

Expand Down
3 changes: 3 additions & 0 deletions src/imapcommands.c
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,9 @@ static void sorted_search_enter(dm_thread_data *D)
SESSION_RETURN;
}

if (self->state == CLIENTSTATE_SELECTED)
dbmail_imap_session_mailbox_status(self, TRUE);

mb = self->mailbox;
switch(order) {
case SEARCH_SORTED:
Expand Down

0 comments on commit 03f08ef

Please sign in to comment.