Also some other error handling when some dirs were missing were done wrong.
--HG--
branch : HEAD
}
/* the control dir doesn't exist. create it unless the whole
mailbox was just deleted. */
- if (maildir_set_deleted(mk->mbox))
+ if (!maildir_set_deleted(mk->mbox))
return -1;
}
if (errno != ENOENT || i == MAILDIR_DELETE_RETRY_COUNT)
break;
- if (maildir_set_deleted(mbox))
+ if (!maildir_set_deleted(mbox))
return -1;
/* try again */
}
return -1;
}
- if (maildir_set_deleted(ctx->mbox))
+ if (!maildir_set_deleted(ctx->mbox))
return -1;
/* try again */
}
}
/* the control dir doesn't exist. create it unless the whole
mailbox was just deleted. */
- if (maildir_set_deleted(uidlist->mbox))
+ if (!maildir_set_deleted(uidlist->mbox))
return -1;
}
}
/* the control dir doesn't exist. create it unless the whole
mailbox was just deleted. */
- if (maildir_set_deleted(uidlist->mbox))
+ if (!maildir_set_deleted(uidlist->mbox))
return -1;
}