[dovecot-cvs] dovecot/src/imap cmd-select.c,1.6,1.7

cras at procontrol.fi cras at procontrol.fi
Fri Oct 25 05:59:38 EEST 2002


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv27981/imap

Modified Files:
	cmd-select.c 
Log Message:
Error message fixes for APPEND. Make sure we don't crash if sync_callbacks
isn't set. Don't set sync_callbacks until SELECT is finished.



Index: cmd-select.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-select.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cmd-select.c	19 Oct 2002 14:51:59 -0000	1.6
+++ cmd-select.c	25 Oct 2002 01:59:36 -0000	1.7
@@ -35,6 +35,8 @@
 		return TRUE;
 	}
 
+	/* set callbacks after STATUS, which might otherwise try calling
+	   some of them */
 	box->set_sync_callbacks(box, &sync_callbacks, client);
 
 	client_send_mailbox_flags(client, box, status.custom_flags,
@@ -63,6 +65,7 @@
 	client_send_tagline(client, box->readonly ?
 			    "OK [READ-ONLY] Select completed." :
 			    "OK [READ-WRITE] Select completed.");
+
 	return TRUE;
 }
 




More information about the dovecot-cvs mailing list