}
clients_init();
- commands_init();
client = client_create(0, 1, user, set);
client->workarounds = parse_workarounds(set);
if (log_io != NULL)
io_remove(&log_io);
clients_deinit();
- commands_deinit();
}
int main(int argc, char *argv[], char *envp[])
i_fatal("USER environment missing");
}
+ /* plugins may want to add commands, so this needs to be called early */
+ commands_init();
+
mail_user = mail_storage_service_init_user(service, user, set_roots,
storage_service_flags);
set = mail_storage_service_get_settings(service);
main_deinit();
mail_storage_service_deinit_user();
+ commands_deinit();
+
master_service_deinit(&service);
return 0;
}