[dovecot-cvs] dovecot/src/plugins/lazy-expunge lazy-expunge-plugin.c, 1.9, 1.10

tss at dovecot.org tss at dovecot.org
Sun May 13 18:46:11 EEST 2007


Update of /var/lib/cvs/dovecot/src/plugins/lazy-expunge
In directory talvi:/tmp/cvs-serv17914/plugins/lazy-expunge

Modified Files:
	lazy-expunge-plugin.c 
Log Message:
lib-storage doesn't need the ability to return syntax errors. They should be
checked before lib-storage is called.



Index: lazy-expunge-plugin.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/lazy-expunge/lazy-expunge-plugin.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- lazy-expunge-plugin.c	17 Apr 2007 16:41:05 -0000	1.9
+++ lazy-expunge-plugin.c	13 May 2007 15:46:09 -0000	1.10
@@ -69,7 +69,7 @@
 mailbox_open_or_create(struct mail_storage *storage, const char *name)
 {
 	struct mailbox *box;
-	bool syntax, temp;
+	bool temp;
 
 	box = mailbox_open(storage, name, NULL, MAILBOX_OPEN_FAST |
 			   MAILBOX_OPEN_KEEP_RECENT |
@@ -77,8 +77,8 @@
 	if (box != NULL)
 		return box;
 
-	(void)mail_storage_get_last_error(storage, &syntax, &temp);
-	if (syntax || temp)
+	(void)mail_storage_get_last_error(storage, &temp);
+	if (temp)
 		return NULL;
 
 	/* probably the mailbox just doesn't exist. try creating it. */



More information about the dovecot-cvs mailing list