[dovecot-cvs] dovecot/src/deliver deliver.c,1.58,1.59

tss at dovecot.org tss at dovecot.org
Mon Mar 26 02:58:24 EEST 2007


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

Modified Files:
	deliver.c 
Log Message:
INBOX fallbacking with -n wasn't working.



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- deliver.c	25 Mar 2007 21:58:39 -0000	1.58
+++ deliver.c	25 Mar 2007 23:58:22 -0000	1.59
@@ -692,12 +692,12 @@
 		/* plugins didn't handle this. save into the default mailbox. */
 		i_stream_seek(input, 0);
 		ret = deliver_save(storage, mailbox, mail, 0, NULL);
-		if (ret < 0 && strcasecmp(mailbox, "INBOX") != 0) {
-			/* still didn't work. try once more to save it
-			   to INBOX. */
-			i_stream_seek(input, 0);
-			ret = deliver_save(storage, "INBOX", mail, 0, NULL);
-		}
+	}
+	if (ret < 0 && strcasecmp(mailbox, "INBOX") != 0) {
+		/* still didn't work. try once more to save it
+		   to INBOX. */
+		i_stream_seek(input, 0);
+		ret = deliver_save(storage, "INBOX", mail, 0, NULL);
 	}
 
 	if (ret < 0) {



More information about the dovecot-cvs mailing list