Skip to content

Commit

Permalink
[Web] broadcast maildir move to dovecot containers on mailbox_rename
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddleSpl0it authored and DerLinkman committed Nov 15, 2024
1 parent d12ed1e commit aaee040
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/web/inc/functions.mailbox.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3351,7 +3351,12 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
'old_maildir' => $domain . '/' . $old_local_part,
'new_maildir' => $domain . '/' . $new_local_part
);
docker('post', 'dovecot-mailcow', 'exec', $exec_fields);
if (getenv("CLUSTERMODE") == "replication") {
// broadcast to each dovecot container
docker('broadcast', 'dovecot-mailcow', 'exec', $exec_fields);
} else {
docker('post', 'dovecot-mailcow', 'exec', $exec_fields);
}

// rename username in sogo
$exec_fields = array(
Expand Down

0 comments on commit aaee040

Please sign in to comment.