]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
expire plugin: Pass username to dict_init().
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Jun 2008 19:10:28 +0000 (22:10 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Jun 2008 19:10:28 +0000 (22:10 +0300)
--HG--
branch : HEAD

src/plugins/expire/expire-plugin.c

index 7d2f0ef12ff6ff5b1a45c951b6b2ec6c96735e2c..29a0f82673359d89bff111d24bba30f55510ccb7 100644 (file)
@@ -294,11 +294,11 @@ void expire_plugin_init(void)
                if (dict_uri == NULL)
                        i_fatal("expire plugin: expire_dict setting missing");
 
+               expire.username = getenv("USER");
                expire.env = expire_env_init(expunge_env, altmove_env);
-               expire.db = dict_init(dict_uri, DICT_DATA_TYPE_UINT32, NULL);
+               expire.db = dict_init(dict_uri, DICT_DATA_TYPE_UINT32, expire.username);
                if (expire.db == NULL)
                        i_fatal("expire plugin: dict_init() failed");
-               expire.username = getenv("USER");
 
                expire.next_hook_mail_storage_created =
                        hook_mail_storage_created;