Skip to content

Commit 6d1f748

Browse files
FreddleSpl0itDerLinkman
authored andcommitted
[Web] broadcast maildir move to dovecot containers on mailbox_rename
1 parent b9f52df commit 6d1f748

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

data/web/inc/functions.mailbox.inc.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -3351,7 +3351,12 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
33513351
'old_maildir' => $domain . '/' . $old_local_part,
33523352
'new_maildir' => $domain . '/' . $new_local_part
33533353
);
3354-
docker('post', 'dovecot-mailcow', 'exec', $exec_fields);
3354+
if (getenv("CLUSTERMODE") == "replication") {
3355+
// broadcast to each dovecot container
3356+
docker('broadcast', 'dovecot-mailcow', 'exec', $exec_fields);
3357+
} else {
3358+
docker('post', 'dovecot-mailcow', 'exec', $exec_fields);
3359+
}
33553360

33563361
// rename username in sogo
33573362
$exec_fields = array(

0 commit comments

Comments
 (0)