&storage, error_code_r, NULL);
if (ret == 0) {
(void)sieve_storage_sync_init(storage, user);
+ storage->is_personal = TRUE;
} else if (*error_code_r != SIEVE_ERROR_TEMP_FAILURE &&
(flags & SIEVE_STORAGE_FLAG_SYNCHRONIZING) == 0 &&
(flags & SIEVE_STORAGE_FLAG_READWRITE) == 0) {
if (*error_code_r != SIEVE_ERROR_NOT_FOUND ||
(storage->flags & SIEVE_STORAGE_FLAG_SYNCHRONIZING) != 0 ||
- !sieve_storage_is_personal(storage))
+ !storage->is_personal)
return -1;
/* Not found; if this name maps to the default script,
/* Stat storage directory */
- bool is_personal = sieve_storage_is_personal(storage);
-
if (storage_path != NULL && *storage_path != '\0') {
if (sieve_file_storage_stat(fstorage, storage_path) < 0) {
- if (!is_personal ||
+ if (!storage->is_personal ||
storage->error_code != SIEVE_ERROR_NOT_FOUND)
return -1;
if ((storage->flags & SIEVE_STORAGE_FLAG_READWRITE) == 0) {
}
if ((active_path == NULL || *active_path == '\0') &&
- (is_personal ||
+ (storage->is_personal ||
(storage->flags & SIEVE_STORAGE_FLAG_READWRITE) != 0)) {
e_debug(storage->event,
"Active script path is unconfigured; "