Skip to content
Snippets Groups Projects
Commit ded06ee4 authored by Timo Sirainen's avatar Timo Sirainen
Browse files

testsuite: Configure mail_attribute_dict via userdb fields

It can't be done anymore by modifying settings directly.
parent b0fbd585
No related branches found
No related tags found
No related merge requests found
...@@ -84,6 +84,8 @@ void testsuite_mailstore_init(void) ...@@ -84,6 +84,8 @@ void testsuite_mailstore_init(void)
i_fatal("Failed to get working directory: %s", error); i_fatal("Failed to get working directory: %s", error);
const char *const userdb_fields[] = { const char *const userdb_fields[] = {
t_strconcat("home=", cwd, NULL), t_strconcat("home=", cwd, NULL),
"mail_attribute_dict/dict_driver=file",
t_strconcat("dict_file_path=", testsuite_mailstore_attrs, NULL),
NULL, NULL,
}; };
struct settings_instance *set_instance = struct settings_instance *set_instance =
...@@ -113,9 +115,6 @@ void testsuite_mailstore_init(void) ...@@ -113,9 +115,6 @@ void testsuite_mailstore_init(void)
mail_set->mail_location = p_strconcat( mail_set->mail_location = p_strconcat(
mail_user->pool, "maildir:", mail_user->pool, "maildir:",
testsuite_mailstore_location, NULL); testsuite_mailstore_location, NULL);
mail_set->mail_attribute_dict = p_strconcat(
mail_user->pool, "file:",
testsuite_mailstore_attrs, NULL);
ns->mail_set = mail_set; ns->mail_set = mail_set;
if (mail_storage_create(ns, "maildir", 0, &error) < 0) if (mail_storage_create(ns, "maildir", 0, &error) < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.