From: Timo Sirainen Date: Fri, 1 May 2026 17:40:17 +0000 (+0000) Subject: [PATCH 2/5] imap: Recreate multiplex ostream side channel after unhibernation X-Git-Tag: archive/raspbian/1%2.4.1+dfsg1-6+rpi1+deb13u7^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ebf51a7f99a30f144e033a24b3e9e01c7c01b43b;p=dovecot.git [PATCH 2/5] imap: Recreate multiplex ostream side channel after unhibernation This will be needed by the following changes to send dict_reset commands via the side channel. Gbp-Pq: Name 0002-imap-Recreate-multiplex-ostream-side-channel-after-u.patch --- diff --git a/src/imap/imap-state.c b/src/imap/imap-state.c index 3736296..fbd383d 100644 --- a/src/imap/imap-state.c +++ b/src/imap/imap-state.c @@ -723,6 +723,13 @@ import_state_compress(struct client *client, const unsigned char *data, *error_r = t_strdup_printf("Unknown COMPRESS handler %s", name); return 0; } + /* Recreate the side channel that cmd-compress would have created in + the previous (now-exited) imap process. It is used to forward + dict_reset commands back to the imap-login proxy after every tagged + reply. */ + if (client->multiplex_output != NULL && + client->side_channel_output == NULL) + client_create_side_channel_output(client); return p - data; }