Commit a808517a a808517a1d6b7cc4325199800385b6b6e41ecdab by Alain Magloire

Oops!

1 parent 9c57918e
......@@ -507,6 +507,9 @@ imap_messages_count (mailbox_t mailbox, size_t *pnum)
return 0;
}
/* Put the mailbox as selected. */
f_imap->selected = m_imap;
switch (f_imap->state)
{
case IMAP_NO_STATE:
......@@ -532,9 +535,6 @@ imap_messages_count (mailbox_t mailbox, size_t *pnum)
break;
}
/* Put the mailbox as selected. */
f_imap->selected = m_imap;
if (pnum)
*pnum = m_imap->messages_count;
......