Mercurial > dovecot > core-2.2
changeset 20839:78d312e6abdc
last-login: Don't execute last_login on IMAP unhibernation.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 10 Oct 2016 17:37:27 +0300 |
parents | b032a6c57fbe |
children | 1b4a57403aef |
files | src/plugins/last-login/last-login-plugin.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/last-login/last-login-plugin.c Mon Oct 10 17:19:32 2016 +0300 +++ b/src/plugins/last-login/last-login-plugin.c Mon Oct 10 17:37:27 2016 +0300 @@ -84,6 +84,10 @@ not lda's raw user or accessed shared users */ return; } + if (user->session_restored) { + /* This is IMAP unhibernation, not a real login. */ + return; + } dict_value = mail_user_plugin_getenv(user, "last_login_dict"); if (dict_value == NULL || dict_value[0] == '\0')