Mercurial > dovecot > core-2.2
diff src/imap/imap-client.h @ 14302:5bbcf636bbeb
Added a "session ID" string for imap/pop3 connections, available in %{session} variable.
The session ID passes through Dovecot IMAP/POP3 proxying to backend server.
The same session ID is can be reused after a long time (currently a bit
under 9 years).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 07 Mar 2012 13:36:34 +0200 |
parents | 690f60827f59 |
children | fbb1ecb9b888 |
line wrap: on
line diff
--- a/src/imap/imap-client.h Wed Mar 07 13:32:40 2012 +0200 +++ b/src/imap/imap-client.h Wed Mar 07 13:36:34 2012 +0200 @@ -99,6 +99,7 @@ struct client { struct client *prev, *next; + const char *session_id; int fd_in, fd_out; struct io *io; struct istream *input; @@ -170,7 +171,8 @@ /* 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, struct mail_user *user, +struct client *client_create(int fd_in, int fd_out, const char *session_id, + struct mail_user *user, struct mail_storage_service_user *service_user, const struct imap_settings *set); void client_destroy(struct client *client, const char *reason);