[dovecot-cvs] dovecot/src/deliver deliver.c,1.64,1.65

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


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv17914/deliver

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



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- deliver.c	13 May 2007 15:15:07 -0000	1.64
+++ deliver.c	13 May 2007 15:46:07 -0000	1.65
@@ -81,7 +81,7 @@
 {
 	struct mail_namespace *ns;
 	struct mailbox *box;
-	bool syntax, temp;
+	bool temp;
 
 	ns = mail_namespace_find(namespaces, &name);
 	if (ns == NULL) {
@@ -95,8 +95,8 @@
 	if (box != NULL || no_mailbox_autocreate)
 		return box;
 
-	(void)mail_storage_get_last_error(ns->storage, &syntax, &temp);
-	if (syntax || temp)
+	(void)mail_storage_get_last_error(ns->storage, &temp);
+	if (temp)
 		return NULL;
 
 	/* probably the mailbox just doesn't exist. try creating it. */
@@ -715,11 +715,10 @@
 
 	if (ret < 0) {
 		const char *error, *msgid;
-		bool syntax, temporary_error;
+		bool temporary_error;
 		int ret;
 
-		error = mail_storage_get_last_error(storage, &syntax,
-						    &temporary_error);
+		error = mail_storage_get_last_error(storage, &temporary_error);
 		if (temporary_error)
 			return EX_TEMPFAIL;
 



More information about the dovecot-cvs mailing list