[dovecot-cvs] dovecot/src/plugins/trash trash-plugin.c,1.15,1.16
tss at dovecot.org
tss at dovecot.org
Fri Feb 16 18:01:19 UTC 2007
Update of /var/lib/cvs/dovecot/src/plugins/trash
In directory talvi:/tmp/cvs-serv14820
Modified Files:
trash-plugin.c
Log Message:
If trash mailbox couldn't be opened, don't crash later either.
Index: trash-plugin.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/trash/trash-plugin.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- trash-plugin.c 16 Feb 2007 12:15:28 -0000 1.15
+++ trash-plugin.c 16 Feb 2007 18:01:16 -0000 1.16
@@ -151,6 +151,9 @@
for (i = 0; i < count; i++) {
struct trash_mailbox *trash = &trashes[i];
+ if (trash->box == NULL)
+ continue;
+
trash->mail_set = FALSE;
mail_free(&trash->mail);
(void)mailbox_search_deinit(&trash->search_ctx);
More information about the dovecot-cvs
mailing list