Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/imap/main.c @ 8467:03c418eadc8b HEAD
mail_user_*() now handles home directory lookups when necessary.
Namespace owner is now a pointer to struct mail_user rather than a string.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 21 Nov 2008 18:32:02 +0200 |
parents | 9d963e3bbe65 |
children | b9faf4db2a9f |
comparison
equal
deleted
inserted
replaced
8466:4553e28eb4f5 | 8467:03c418eadc8b |
---|---|
192 | 192 |
193 capability_string = str_new(default_pool, sizeof(CAPABILITY_STRING)+32); | 193 capability_string = str_new(default_pool, sizeof(CAPABILITY_STRING)+32); |
194 str_append(capability_string, CAPABILITY_STRING); | 194 str_append(capability_string, CAPABILITY_STRING); |
195 | 195 |
196 dict_drivers_register_builtin(); | 196 dict_drivers_register_builtin(); |
197 mail_users_init(getenv("AUTH_SOCKET_PATH"), getenv("DEBUG") != NULL); | |
197 mail_storage_init(); | 198 mail_storage_init(); |
198 mail_storage_register_all(); | 199 mail_storage_register_all(); |
199 mailbox_list_register_all(); | 200 mailbox_list_register_all(); |
200 clients_init(); | 201 clients_init(); |
201 commands_init(); | 202 commands_init(); |
226 imap_id_send = getenv("IMAP_ID_SEND"); | 227 imap_id_send = getenv("IMAP_ID_SEND"); |
227 imap_id_log = getenv("IMAP_ID_LOG"); | 228 imap_id_log = getenv("IMAP_ID_LOG"); |
228 | 229 |
229 parse_workarounds(); | 230 parse_workarounds(); |
230 | 231 |
231 user = mail_user_init(username, home); | 232 user = mail_user_init(username); |
233 mail_user_set_home(user, home); | |
232 if (mail_namespaces_init(user) < 0) | 234 if (mail_namespaces_init(user) < 0) |
233 i_fatal("Namespace initialization failed"); | 235 i_fatal("Namespace initialization failed"); |
234 client = client_create(0, 1, user); | 236 client = client_create(0, 1, user); |
235 | 237 |
236 output = client->output; | 238 output = client->output; |
269 io_remove(&log_io); | 271 io_remove(&log_io); |
270 clients_deinit(); | 272 clients_deinit(); |
271 | 273 |
272 module_dir_unload(&modules); | 274 module_dir_unload(&modules); |
273 commands_deinit(); | 275 commands_deinit(); |
274 mail_storage_deinit(); | 276 mail_storage_deinit(); |
277 mail_users_deinit(); | |
275 dict_drivers_unregister_builtin(); | 278 dict_drivers_unregister_builtin(); |
276 | 279 |
277 str_free(&capability_string); | 280 str_free(&capability_string); |
278 | 281 |
279 lib_signals_deinit(); | 282 lib_signals_deinit(); |