Mercurial > dovecot > original-hg > imaptest
changeset 316:4ec03f56e053
profile: Don't do work unless the client is idling.
(Or most importantly, it must already be logged in.)
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 11 Oct 2013 20:04:09 +0300 |
parents | 60543c769ff2 |
children | 900144cb4a92 |
files | src/profile.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/profile.c Fri Oct 11 19:46:06 2013 +0300 +++ b/src/profile.c Fri Oct 11 20:04:09 2013 +0300 @@ -238,7 +238,7 @@ case USER_TIMESTAMP_WRITE_MAIL: /* FIXME: write to Drafts first */ client = user_find_any_client(user); - if (client != NULL) { + if (client != NULL && client->state == STATE_IDLE) { client_append_full(client, PROFILE_MAILBOX_SENT, 0, "", state_callback, &cmd); }