Skip to content

Commit 1a83392

Browse files
author
Till Brehm
committed
Fixed #5219 Run getmail only on master when server is a mirror
1 parent 3785448 commit 1a83392

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/plugins-available/getmail_plugin.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ function insert($event_name, $data) {
7676

7777
function update($event_name, $data) {
7878
global $app, $conf;
79+
80+
// Do not write getmail config files on mirror servers to avoid double fetching of emails.
81+
if($conf['mirror_server_id'] > 0) return true;
7982

8083
// load the server specific configuration options for getmail
8184
$app->uses("getconf");

0 commit comments

Comments
 (0)