[dovecot-cvs] dovecot/src/imap cmd-check.c, 1.4, 1.5 cmd-expunge.c, 1.8, 1.9 cmd-select.c, 1.30, 1.31

cras at dovecot.org cras at dovecot.org
Sat Aug 28 19:39:56 EEST 2004


Update of /home/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv27818/src/imap

Modified Files:
	cmd-check.c cmd-expunge.c cmd-select.c 
Log Message:
Added mbox_dirty_syncs setting which delays re-reading the whole mbox when
it's changed.



Index: cmd-check.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-check.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cmd-check.c	18 Aug 2004 23:53:39 -0000	1.4
+++ cmd-check.c	28 Aug 2004 16:39:53 -0000	1.5
@@ -8,5 +8,5 @@
 	if (!client_verify_open_mailbox(client))
 		return TRUE;
 
-	return cmd_sync(client, 0, "OK Check completed.");
+	return cmd_sync(client, MAILBOX_SYNC_FLAG_FULL, "OK Check completed.");
 }

Index: cmd-expunge.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-expunge.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cmd-expunge.c	18 Aug 2004 23:53:39 -0000	1.8
+++ cmd-expunge.c	28 Aug 2004 16:39:53 -0000	1.9
@@ -27,9 +27,10 @@
 	if (search_arg == NULL)
 		return TRUE;
 
-	if (imap_expunge(client->mailbox, search_arg))
-		return cmd_sync(client, 0, "OK Expunge completed.");
-	else {
+	if (imap_expunge(client->mailbox, search_arg)) {
+		return cmd_sync(client, MAILBOX_SYNC_FLAG_FULL,
+				"OK Expunge completed.");
+	} else {
 		client_send_storage_error(client,
 					  mailbox_get_storage(client->mailbox));
 		return TRUE;
@@ -41,9 +42,10 @@
 	if (!client_verify_open_mailbox(client))
 		return TRUE;
 
-	if (imap_expunge(client->mailbox, NULL))
-		return cmd_sync(client, 0, "OK Expunge completed.");
-	else {
+	if (imap_expunge(client->mailbox, NULL)) {
+		return cmd_sync(client, MAILBOX_SYNC_FLAG_FULL,
+				"OK Expunge completed.");
+	} else {
 		client_send_storage_error(client,
 					  mailbox_get_storage(client->mailbox));
 		return TRUE;

Index: cmd-select.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-select.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- cmd-select.c	18 Aug 2004 23:53:39 -0000	1.30
+++ cmd-select.c	28 Aug 2004 16:39:53 -0000	1.31
@@ -35,7 +35,7 @@
 		return TRUE;
 	}
 
-	if (imap_sync_nonselected(box, 0) < 0) {
+	if (imap_sync_nonselected(box, MAILBOX_SYNC_FLAG_FULL) < 0) {
 		client_send_storage_error(client, storage);
 		mailbox_close(box);
 		return TRUE;



More information about the dovecot-cvs mailing list