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 committed Nov 13, 2024
1 parent b90375b commit 1819b6e
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 1819b6e

Please sign in to comment.