[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.161, 1.162

tss at dovecot.org tss at dovecot.org
Fri Mar 30 21:45:24 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv29978/index/maildir

Modified Files:
	maildir-storage.c 
Log Message:
cleaned up mailbox closing code



Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -d -r1.161 -r1.162
--- maildir-storage.c	30 Mar 2007 18:41:06 -0000	1.161
+++ maildir-storage.c	30 Mar 2007 18:45:22 -0000	1.162
@@ -855,15 +855,9 @@
 		rename_mailbox(list, oldname, newname);
 }
 
-static int maildir_storage_close(struct mailbox *box)
+static int maildir_storage_mailbox_close(struct mailbox *box)
 {
 	struct maildir_mailbox *mbox = (struct maildir_mailbox *)box;
-	int ret = 0;
-
-	/*FIXME:if (!maildir_try_flush_dirty_flags(ibox->index, TRUE)) {
-		mail_storage_set_index_error(ibox);
-		ret = -1;
-	}*/
 
 	if (mbox->keep_lock_to != NULL) {
 		maildir_uidlist_unlock(mbox->uidlist);
@@ -872,8 +866,7 @@
 
 	maildir_keywords_deinit(mbox->keywords);
 	maildir_uidlist_deinit(mbox->uidlist);
-        index_storage_mailbox_free(box);
-	return ret;
+        return index_storage_mailbox_close(box);
 }
 
 static void maildir_notify_changes(struct mailbox *box)
@@ -1058,7 +1051,7 @@
 	{
 		index_storage_is_readonly,
 		index_storage_allow_new_keywords,
-		maildir_storage_close,
+		maildir_storage_mailbox_close,
 		index_storage_get_status,
 		maildir_storage_sync_init,
 		index_mailbox_sync_next,



More information about the dovecot-cvs mailing list