Mercurial > dovecot > original-hg > dovecot-1.2
diff src/plugins/trash/trash-plugin.c @ 4848:967de900c73a HEAD
Mailbox list indexing and related changes. Currently works only with
maildir and mmap_disable=no. This allows doing STATUS to synced mailboxes
without opening their index files at all.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 26 Nov 2006 00:17:39 +0200 |
parents | 49c9e7588de4 |
children | 6b0032df7008 |
line wrap: on
line diff
--- a/src/plugins/trash/trash-plugin.c Sun Nov 26 00:12:11 2006 +0200 +++ b/src/plugins/trash/trash-plugin.c Sun Nov 26 00:17:39 2006 +0200 @@ -42,12 +42,11 @@ { struct mailbox_sync_context *ctx; struct mailbox_sync_rec sync_rec; - struct mailbox_status status; ctx = mailbox_sync_init(box, MAILBOX_SYNC_FLAG_FULL_READ); while (mailbox_sync_next(ctx, &sync_rec) > 0) ; - return mailbox_sync_deinit(&ctx, &status); + return mailbox_sync_deinit(&ctx, 0, NULL); } static int trash_clean_mailbox_open(struct trash_mailbox *trash)