Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/plugins/expire/expire-plugin.c @ 8082:db66611fd195 HEAD
Added struct mail_user and fixed the code to support multiple users per process.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 12 Aug 2008 12:28:42 -0400 |
parents | d73cc550b389 |
children | b46b0158eb64 |
comparison
equal
deleted
inserted
replaced
8081:0d5fba71cb93 | 8082:db66611fd195 |
---|---|
292 if (expunge_env != NULL || altmove_env != NULL) { | 292 if (expunge_env != NULL || altmove_env != NULL) { |
293 dict_uri = getenv("EXPIRE_DICT"); | 293 dict_uri = getenv("EXPIRE_DICT"); |
294 if (dict_uri == NULL) | 294 if (dict_uri == NULL) |
295 i_fatal("expire plugin: expire_dict setting missing"); | 295 i_fatal("expire plugin: expire_dict setting missing"); |
296 | 296 |
297 // FIXME: user should be per-mail_user?... | |
297 expire.username = getenv("USER"); | 298 expire.username = getenv("USER"); |
298 expire.env = expire_env_init(expunge_env, altmove_env); | 299 expire.env = expire_env_init(expunge_env, altmove_env); |
299 expire.db = dict_init(dict_uri, DICT_DATA_TYPE_UINT32, expire.username); | 300 expire.db = dict_init(dict_uri, DICT_DATA_TYPE_UINT32, expire.username); |
300 if (expire.db == NULL) | 301 if (expire.db == NULL) |
301 i_fatal("expire plugin: dict_init() failed"); | 302 i_fatal("expire plugin: dict_init() failed"); |