diff --git a/src/lib-sieve/plugins/include/ext-include-common.c b/src/lib-sieve/plugins/include/ext-include-common.c index e6dcc0f983a7588cd735703aa39582144b66f3f3..8de2275fbc14e40550e91beb7dd91fcad24df247 100644 --- a/src/lib-sieve/plugins/include/ext-include-common.c +++ b/src/lib-sieve/plugins/include/ext-include-common.c @@ -144,8 +144,8 @@ ext_include_get_script_storage(const struct sieve_extension *ext, case EXT_INCLUDE_LOCATION_PERSONAL: if (ctx->personal_storage == NULL) { ctx->personal_storage = - sieve_storage_create_main(svinst, NULL, 0, - error_code_r); + sieve_storage_create_personal(svinst, NULL, 0, + error_code_r); } return ctx->personal_storage; case EXT_INCLUDE_LOCATION_GLOBAL: diff --git a/src/lib-sieve/sieve-storage.c b/src/lib-sieve/sieve-storage.c index 5ffbc7b954ed3081f3bbc73fd732dbbc0131bbc9..118dbf2121b40c319b5e72c09e6e31333ee4d578 100644 --- a/src/lib-sieve/sieve-storage.c +++ b/src/lib-sieve/sieve-storage.c @@ -389,10 +389,10 @@ sieve_storage_create(struct sieve_instance *svinst, const char *location, } static struct sieve_storage * -sieve_storage_do_create_main(struct sieve_instance *svinst, - struct mail_user *user, - enum sieve_storage_flags flags, - enum sieve_error *error_code_r) +sieve_storage_do_create_personal(struct sieve_instance *svinst, + struct mail_user *user, + enum sieve_storage_flags flags, + enum sieve_error *error_code_r) { struct sieve_storage *storage = NULL; const struct sieve_storage *sieve_class = NULL; @@ -470,9 +470,10 @@ sieve_storage_do_create_main(struct sieve_instance *svinst, } struct sieve_storage * -sieve_storage_create_main(struct sieve_instance *svinst, struct mail_user *user, - enum sieve_storage_flags flags, - enum sieve_error *error_code_r) +sieve_storage_create_personal(struct sieve_instance *svinst, + struct mail_user *user, + enum sieve_storage_flags flags, + enum sieve_error *error_code_r) { struct sieve_storage *storage; const char *set_enabled, *set_default, *set_default_name; @@ -496,8 +497,8 @@ sieve_storage_create_main(struct sieve_instance *svinst, struct mail_user *user, set_default = sieve_setting_get(svinst, "sieve_default"); /* Attempt to locate user's main storage */ - storage = sieve_storage_do_create_main(svinst, user, flags, - error_code_r); + storage = sieve_storage_do_create_personal(svinst, user, flags, + error_code_r); if (storage != NULL) { /* Success; record default script location for later use */ storage->default_location = diff --git a/src/lib-sieve/sieve-storage.h b/src/lib-sieve/sieve-storage.h index 76be038858d1d0058fc46041d452de19b09bce94..f766587ebd7f725f4c46c3b6c4f65697ebfe9fe0 100644 --- a/src/lib-sieve/sieve-storage.h +++ b/src/lib-sieve/sieve-storage.h @@ -30,9 +30,10 @@ sieve_storage_create(struct sieve_instance *svinst, const char *location, enum sieve_storage_flags flags, enum sieve_error *error_code_r); struct sieve_storage * -sieve_storage_create_main(struct sieve_instance *svinst, struct mail_user *user, - enum sieve_storage_flags flags, - enum sieve_error *error_code_r); +sieve_storage_create_personal(struct sieve_instance *svinst, + struct mail_user *user, + enum sieve_storage_flags flags, + enum sieve_error *error_code_r); void sieve_storage_ref(struct sieve_storage *storage); void sieve_storage_unref(struct sieve_storage **_storage); diff --git a/src/managesieve/managesieve-client.c b/src/managesieve/managesieve-client.c index 47bd0dd3c3fafdacabc3bfae56bd1c54e235b051..1ae8e1e6d62d246019337f43c5f9b16be6df96a0 100644 --- a/src/managesieve/managesieve-client.c +++ b/src/managesieve/managesieve-client.c @@ -71,9 +71,9 @@ client_get_storage(struct sieve_instance *svinst, struct event *event, /* Open personal script storage */ - storage = sieve_storage_create_main(svinst, user, - SIEVE_STORAGE_FLAG_READWRITE, - &error_code); + storage = sieve_storage_create_personal(svinst, user, + SIEVE_STORAGE_FLAG_READWRITE, + &error_code); if (storage == NULL) { switch (error_code) { case SIEVE_ERROR_NOT_POSSIBLE: diff --git a/src/plugins/doveadm-sieve/doveadm-sieve-cmd.c b/src/plugins/doveadm-sieve/doveadm-sieve-cmd.c index af0cf22069ef113c0f029d2c482c2fec57014e7d..a5cedb4965a1b9b01913df76e25a9deb30d93f2e 100644 --- a/src/plugins/doveadm-sieve/doveadm-sieve-cmd.c +++ b/src/plugins/doveadm-sieve/doveadm-sieve-cmd.c @@ -117,7 +117,7 @@ doveadm_sieve_cmd_run(struct doveadm_mail_cmd_context *_ctx, if (ctx->svinst == NULL) return -1; - ctx->storage = sieve_storage_create_main( + ctx->storage = sieve_storage_create_personal( ctx->svinst, user, SIEVE_STORAGE_FLAG_READWRITE, &error_code); if (ctx->storage == NULL) { switch (error_code) { diff --git a/src/plugins/doveadm-sieve/doveadm-sieve-sync.c b/src/plugins/doveadm-sieve/doveadm-sieve-sync.c index 1ea6eb65e851231a170ab64ded8b8ce90f41365a..05abee587146e9890570115979bbdad987303dd0 100644 --- a/src/plugins/doveadm-sieve/doveadm-sieve-sync.c +++ b/src/plugins/doveadm-sieve/doveadm-sieve-sync.c @@ -99,8 +99,8 @@ mail_sieve_user_init(struct mail_user *user, struct sieve_storage **svstorage_r) return -1; suser->sieve_storage = - sieve_storage_create_main(suser->svinst, user, - storage_flags, NULL); + sieve_storage_create_personal(suser->svinst, user, + storage_flags, NULL); *svstorage_r = suser->sieve_storage; return (suser->sieve_storage != NULL ? 1 : 0); diff --git a/src/plugins/imap-filter-sieve/imap-filter-sieve.c b/src/plugins/imap-filter-sieve/imap-filter-sieve.c index 0f9b2f195bf72dc7a0b57026156d5ce0940a4f3f..c275d90eb5adb8ae46b40cd6552ef8c0b5267024 100644 --- a/src/plugins/imap-filter-sieve/imap-filter-sieve.c +++ b/src/plugins/imap-filter-sieve/imap-filter-sieve.c @@ -190,9 +190,9 @@ imap_filter_sieve_get_personal_storage(struct imap_filter_sieve_context *sctx, return -1; } - ifsuser->storage = sieve_storage_create_main(svinst, user, - storage_flags, - &error_code); + ifsuser->storage = sieve_storage_create_personal(svinst, user, + storage_flags, + &error_code); if (ifsuser->storage != NULL) { *storage_r = ifsuser->storage; return 0; diff --git a/src/plugins/imapsieve/imap-sieve.c b/src/plugins/imapsieve/imap-sieve.c index 0dd7a0151e2068ce00bbc3088b6e43a0c30e857d..0aaf363c1bf6e8852988d3d2323d4d1c1aab6b7f 100644 --- a/src/plugins/imapsieve/imap-sieve.c +++ b/src/plugins/imapsieve/imap-sieve.c @@ -144,8 +144,9 @@ imap_sieve_get_storage(struct imap_sieve *isieve, return -1; } - isieve->storage = sieve_storage_create_main(isieve->svinst, user, - storage_flags, &error_code); + isieve->storage = sieve_storage_create_personal(isieve->svinst, user, + storage_flags, + &error_code); if (isieve->storage == NULL) { if (error_code == SIEVE_ERROR_TEMP_FAILURE) return -1; diff --git a/src/plugins/lda-sieve/lda-sieve-plugin.c b/src/plugins/lda-sieve/lda-sieve-plugin.c index aca30310993bc159a54115479fc800464781ead5..66bd0e8590e60110db089afa9c7547644b6df36a 100644 --- a/src/plugins/lda-sieve/lda-sieve-plugin.c +++ b/src/plugins/lda-sieve/lda-sieve-plugin.c @@ -256,7 +256,8 @@ lda_sieve_get_personal_storage(struct sieve_instance *svinst, struct sieve_storage **storage_r, enum sieve_error *error_code_r) { - *storage_r = sieve_storage_create_main(svinst, user, 0, error_code_r); + *storage_r = sieve_storage_create_personal(svinst, user, 0, + error_code_r); if (*storage_r == NULL) { switch (*error_code_r) { case SIEVE_ERROR_NOT_POSSIBLE: