dovecot-1.1: expire plugin: Pass username to dict_init().
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 2 22:10:33 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/d73cc550b389
changeset: 7602:d73cc550b389
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 02 22:10:28 2008 +0300
description:
expire plugin: Pass username to dict_init().
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/plugins/expire/expire-plugin.c | 4 ++--
diffs (17 lines):
diff -r 04cb8f657b65 -r d73cc550b389 src/plugins/expire/expire-plugin.c
--- a/src/plugins/expire/expire-plugin.c Mon Jun 02 22:10:11 2008 +0300
+++ b/src/plugins/expire/expire-plugin.c Mon Jun 02 22:10:28 2008 +0300
@@ -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;
More information about the dovecot-cvs
mailing list