changeset 8818:1865ca29524f HEAD

maildir_set_deleted() return value was handled wrong everywhere. Changed it to work as it was used, since it seems to be clearer that way.
author Timo Sirainen <tss@iki.fi>
date Thu, 12 Mar 2009 18:02:39 -0400
parents d8c071203322
children eb8b8e152f85
files src/lib-storage/index/maildir/maildir-util.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-util.c	Thu Mar 12 17:38:36 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-util.c	Thu Mar 12 18:02:39 2009 -0400
@@ -144,12 +144,12 @@
 			mail_storage_set_critical(box->storage,
 				"stat(%s) failed: %m", mbox->path);
 		}
-		return TRUE;
+		return FALSE;
 	}
 	/* maildir itself exists. create all of its subdirectories in case
 	   they got lost. */
 	T_BEGIN {
 		ret = maildir_create_subdirs(mbox);
 	} T_END;
-	return ret < 0 ? TRUE : FALSE;
+	return ret < 0 ? FALSE : TRUE;
 }