return -1;
}
- *client_r = client_create(fd_in, fd_out, input->session_id,
- mail_user, user, set);
-
+ *client_r = client_create(fd_in, fd_out, mail_user, user, set);
return 0;
}
return ret;
}
-struct client *client_create(int fd_in, int fd_out, const char *session_id,
+struct client *client_create(int fd_in, int fd_out,
struct mail_user *user,
struct mail_storage_service_user *service_user,
const struct pop3_settings *set)
client->service_user = service_user;
client->v = pop3_client_vfuncs;
client->set = set;
- client->session_id = p_strdup(pool, session_id);
client->fd_in = fd_in;
client->fd_out = fd_out;
client->input = i_stream_create_fd(fd_in, MAX_INBUF_SIZE);
struct client *prev, *next;
struct pop3_client_vfuncs v;
- const char *session_id;
int fd_in, fd_out;
struct io *io;
/* Create new client with specified input/output handles. socket specifies
if the handle is a socket. */
-struct client *client_create(int fd_in, int fd_out, const char *session_id,
+struct client *client_create(int fd_in, int fd_out,
struct mail_user *user,
struct mail_storage_service_user *service_user,
const struct pop3_settings *set);