diff options
Diffstat (limited to 'libproto/imap')
-rw-r--r-- | libproto/imap/mbox.c | 7 | ||||
-rw-r--r-- | libproto/imap/tests/imapfolder.c | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libproto/imap/mbox.c b/libproto/imap/mbox.c index 1442e6254..fde568a69 100644 --- a/libproto/imap/mbox.c +++ b/libproto/imap/mbox.c @@ -183,7 +183,8 @@ __imap_msg_get_stream (struct _mu_imap_message *imsg, size_t msgno, clos.imsg = imsg; clos.save_stream = imbx->cache; - + clos.size = 0; + rc = mu_msgset_add_range (msgset, msgno, msgno, MU_MSGSET_NUM); if (rc == 0) { @@ -757,7 +758,9 @@ _imap_mbx_open (mu_mailbox_t mbox, int flags) if (imbx->stats.flags & MU_IMAP_STAT_MESSAGE_COUNT) rc = _imap_realloc_messages (imbx, imbx->stats.message_count); - + + _imap_mbx_scan (mbox, 1, NULL); + return rc; } diff --git a/libproto/imap/tests/imapfolder.c b/libproto/imap/tests/imapfolder.c index 6f91b6349..8d3f6ce44 100644 --- a/libproto/imap/tests/imapfolder.c +++ b/libproto/imap/tests/imapfolder.c @@ -202,6 +202,7 @@ main (int argc, char **argv) mu_diag_funcall (MU_DIAG_ERROR, "mu_folder_create", fname, rc); return 1; } + mu_folder_attach_ticket (folder); rc = mu_folder_open (folder, MU_STREAM_READ); if (rc) |