int mail_storage_purge(struct mail_storage *storage)
{
- mail_storage_clear_error(storage);
-
return storage->v.purge == NULL ? 0 :
storage->v.purge(storage);
}
{
int ret;
- mail_storage_clear_error(box->storage);
-
if (!mailbox_list_is_valid_existing_name(box->list, box->name)) {
mail_storage_set_error(box->storage, MAIL_ERROR_PARAMS,
"Invalid mailbox name");
int mailbox_create(struct mailbox *box, const struct mailbox_update *update,
bool directory)
{
- mail_storage_clear_error(box->storage);
-
if (!mailbox_list_is_valid_create_name(box->list, box->name)) {
mail_storage_set_error(box->storage, MAIL_ERROR_PARAMS,
"Invalid mailbox name");
int mailbox_update(struct mailbox *box, const struct mailbox_update *update)
{
- mail_storage_clear_error(box->storage);
-
return box->v.update(box, update);
}
const char *mailbox_list_get_path(struct mailbox_list *list, const char *name,
enum mailbox_list_path_type type)
{
- mailbox_list_clear_error(list);
-
return list->v.get_path(list, name, type);
}
const char *name,
enum mailbox_name_status *status)
{
- mailbox_list_clear_error(list);
-
if (!mailbox_list_is_valid_existing_name(list, name)) {
*status = MAILBOX_NAME_INVALID;
return 0;
{
i_assert(*patterns != NULL);
- mailbox_list_clear_error(list);
return list->v.iter_init(list, patterns, flags);
}
uint8_t guid[MAIL_GUID_128_SIZE];
unsigned char sha[SHA1_RESULTLEN];
- mailbox_list_clear_error(list);
-
if (list->v.set_subscribed(list, name, set) < 0)
return -1;