net_set_nonblock(fd_in, TRUE);
net_set_nonblock(fd_out, TRUE);
- pop3_client_count++;
-
client = i_new(struct client, 1);
client->service_user = service_user;
client->set = set;
client->user = user;
+ pop3_client_count++;
+ DLLIST_PREPEND(&pop3_clients, client);
+
inbox = "INBOX";
ns = mail_namespace_find(user->namespaces, &inbox);
if (ns == NULL) {
client->anvil_sent = TRUE;
}
- DLLIST_PREPEND(&pop3_clients, client);
if (hook_client_created != NULL)
hook_client_created(&client);