dovecot-2.0: lazy-expunge: Fixed deleting mailboxes that didn't ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Dec 14 22:11:56 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/bef8da2e6b0c
changeset: 10486:bef8da2e6b0c
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Dec 14 15:11:51 2009 -0500
description:
lazy-expunge: Fixed deleting mailboxes that didn't have expunged messages.

diffstat:

1 file changed, 1 insertion(+), 3 deletions(-)
src/plugins/lazy-expunge/lazy-expunge-plugin.c |    4 +---

diffs (21 lines):

diff -r b2f31df5f5da -r bef8da2e6b0c src/plugins/lazy-expunge/lazy-expunge-plugin.c
--- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c	Mon Dec 14 14:40:16 2009 -0500
+++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c	Mon Dec 14 15:11:51 2009 -0500
@@ -44,8 +44,6 @@ struct lazy_expunge_mail_user {
 
 struct lazy_expunge_mailbox_list {
 	union mailbox_list_module_context module_ctx;
-
-	struct mailbox_list *expunge_list;
 
 	unsigned int internal_namespace:1;
 	unsigned int deleting:1;
@@ -423,7 +421,7 @@ lazy_expunge_mailbox_list_delete(struct 
 		return -1;
 	}
 
-	if (expunge_ns == dest_ns) {
+	if (expunge_ns == dest_ns && strcmp(destname, name) != 0) {
 		llist->deleting = TRUE;
 		(void)mailbox_move_all_mails(dest_ns->list, destname, name);
 		llist->deleting = FALSE;


More information about the dovecot-cvs mailing list