Mercurial > dovecot > core-2.2
changeset 21767:b86e6d2abf23
imap-login: Add option to retain client id
This should be enabled if client_id is wanted for auth policy
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Tue, 21 Feb 2017 14:46:31 +0200 |
parents | 494f0ac153a6 |
children | a1bf55c221c2 |
files | src/imap-login/imap-login-settings.c src/imap-login/imap-login-settings.h |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap-login/imap-login-settings.c Mon Feb 20 18:58:21 2017 +0200 +++ b/src/imap-login/imap-login-settings.c Tue Feb 21 14:46:31 2017 +0200 @@ -57,6 +57,7 @@ DEF(SET_STR, imap_capability), DEF(SET_STR, imap_id_send), DEF(SET_STR, imap_id_log), + DEF(SET_BOOL, imap_id_retain), SETTING_DEFINE_LIST_END }; @@ -64,7 +65,8 @@ static const struct imap_login_settings imap_login_default_settings = { .imap_capability = "", .imap_id_send = "name *", - .imap_id_log = "" + .imap_id_log = "", + .imap_id_retain = FALSE, }; static const struct setting_parser_info *imap_login_setting_dependencies[] = {
--- a/src/imap-login/imap-login-settings.h Mon Feb 20 18:58:21 2017 +0200 +++ b/src/imap-login/imap-login-settings.h Tue Feb 21 14:46:31 2017 +0200 @@ -5,6 +5,7 @@ const char *imap_capability; const char *imap_id_send; const char *imap_id_log; + bool imap_id_retain; }; extern const struct setting_parser_info *imap_login_setting_roots[];