Skip to content
Snippets Groups Projects
Commit 1e1e3fc3 authored by Aki Tuomi's avatar Aki Tuomi
Browse files

managesieve: Use mail_user_deinit() to deinitialize user

Is now intended to the used for user deinitialization.
This fixes mail_user_session_finished event not being sent
with managesieve.
parent 6924b3f2
No related branches found
No related tags found
No related merge requests found
...@@ -267,9 +267,8 @@ void client_destroy(struct client *client, const char *reason) ...@@ -267,9 +267,8 @@ void client_destroy(struct client *client, const char *reason)
/* i/ostreams are already closed at this stage, so fd can be closed */ /* i/ostreams are already closed at this stage, so fd can be closed */
fd_close_maybe_stdio(&client->fd_in, &client->fd_out); fd_close_maybe_stdio(&client->fd_in, &client->fd_out);
/* Free the user after client is already disconnected. It may start /* Free the user after client is already disconnected. */
some background work like autoexpunging. */ mail_user_deinit(&client->user);
mail_user_unref(&client->user);
/* free the i/ostreams after mail_user_unref(), which could trigger /* free the i/ostreams after mail_user_unref(), which could trigger
mail_storage_callbacks notifications that write to the ostream. */ mail_storage_callbacks notifications that write to the ostream. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.