[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c,1.43,1.44 mbox-storage.c,1.61,1.62

cras at procontrol.fi cras at procontrol.fi
Sat Jul 26 20:55:14 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory danu:/tmp/cvs-serv13066/lib-storage/index/mbox

Modified Files:
	mbox-save.c mbox-storage.c 
Log Message:
API changes: Don't keep variables in mailbox class.



Index: mbox-save.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- mbox-save.c	15 Jun 2003 03:42:29 -0000	1.43
+++ mbox-save.c	26 Jul 2003 16:55:12 -0000	1.44
@@ -320,7 +320,7 @@
 	struct index_mailbox *ibox = (struct index_mailbox *) box;
 	struct mail_save_context *ctx;
 
-	if (box->readonly) {
+	if (box->is_readonly(box)) {
 		mail_storage_set_error(box->storage, "Mailbox is read-only");
 		return NULL;
 	}

Index: mbox-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- mbox-storage.c	26 Jul 2003 16:33:22 -0000	1.61
+++ mbox-storage.c	26 Jul 2003 16:55:12 -0000	1.62
@@ -780,6 +780,8 @@
 	NULL, /* name */
 	NULL, /* storage */
 
+	index_storage_is_readonly,
+        index_storage_allow_new_custom_flags,
 	mbox_storage_close,
 	mbox_storage_lock,
 	index_storage_get_status,
@@ -802,9 +804,5 @@
 	mbox_storage_expunge_init,
 	mbox_storage_expunge_deinit,
 	mbox_storage_expunge_fetch_next,
-	mail_storage_is_inconsistency_error,
-
-	FALSE,
-	FALSE,
-	FALSE
+	index_storage_is_inconsistency_error
 };



More information about the dovecot-cvs mailing list