[dovecot-cvs] dovecot/src/plugins/trash trash-plugin.c, 1.5.2.4, 1.5.2.5
tss at dovecot.org
tss at dovecot.org
Fri Feb 16 18:01:16 UTC 2007
Update of /var/lib/cvs/dovecot/src/plugins/trash
In directory talvi:/tmp/cvs-serv14823
Modified Files:
Tag: branch_1_0
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.5.2.4
retrieving revision 1.5.2.5
diff -u -d -r1.5.2.4 -r1.5.2.5
--- trash-plugin.c 16 Feb 2007 12:15:25 -0000 1.5.2.4
+++ trash-plugin.c 16 Feb 2007 18:01:13 -0000 1.5.2.5
@@ -164,6 +164,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