dovecot-2.1: lib-storage: Added mail_storage_service_get_var_exp...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jan 17 23:12:36 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/ded87d81fc74
changeset: 13942:ded87d81fc74
user: Timo Sirainen <tss at iki.fi>
date: Tue Jan 17 23:11:16 2012 +0200
description:
lib-storage: Added mail_storage_service_get_var_expand_table().
diffstat:
src/lib-storage/mail-storage-service.c | 12 ++++++++++++
src/lib-storage/mail-storage-service.h | 3 +++
2 files changed, 15 insertions(+), 0 deletions(-)
diffs (35 lines):
diff -r 493ebb2cfc73 -r ded87d81fc74 src/lib-storage/mail-storage-service.c
--- a/src/lib-storage/mail-storage-service.c Tue Jan 17 22:54:11 2012 +0200
+++ b/src/lib-storage/mail-storage-service.c Tue Jan 17 23:11:16 2012 +0200
@@ -392,6 +392,18 @@
return tab;
}
+const struct var_expand_table *
+mail_storage_service_get_var_expand_table(struct mail_storage_service_ctx *ctx,
+ struct mail_storage_service_input *input)
+{
+ struct mail_storage_service_privileges priv;
+
+ memset(&priv, 0, sizeof(priv));
+ priv.uid = (uid_t)-1;
+ priv.gid = (gid_t)-1;
+ return get_var_expand_table(ctx->service, input, &priv);
+}
+
static const char *
user_expand_varstr(struct master_service *service,
struct mail_storage_service_input *input,
diff -r 493ebb2cfc73 -r ded87d81fc74 src/lib-storage/mail-storage-service.h
--- a/src/lib-storage/mail-storage-service.h Tue Jan 17 22:54:11 2012 +0200
+++ b/src/lib-storage/mail-storage-service.h Tue Jan 17 23:11:16 2012 +0200
@@ -109,6 +109,9 @@
struct setting_parser_context *
mail_storage_service_user_get_settings_parser(struct mail_storage_service_user *user);
+const struct var_expand_table *
+mail_storage_service_get_var_expand_table(struct mail_storage_service_ctx *ctx,
+ struct mail_storage_service_input *input);
/* Return the settings pointed to by set_root parameter in _init() */
void *mail_storage_service_get_settings(struct master_service *service);
More information about the dovecot-cvs
mailing list