Просмотр исходного кода

Merge pull request #1042 from extremeshok/patch-3

Fix for large Mailboxes to avoid timeouts
André Peters 7 лет назад
Родитель
Сommit
a0ce05dc0e
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      data/Dockerfiles/dovecot/imapsync_cron.pl

+ 8 - 0
data/Dockerfiles/dovecot/imapsync_cron.pl

@@ -74,6 +74,14 @@ while ($row = $sth->fetchrow_arrayref()) {
 	"--timeout1", "10",
 	"--timeout1", "10",
 	"--tmpdir", "/tmp",
 	"--tmpdir", "/tmp",
 	"--subscribeall",
 	"--subscribeall",
+	"--nofoldersizes",
+	"--skipsize",
+	"--buffersize 8192000",
+	"--skipheader 'X-*",
+	"--split1 3000",
+	"--split2 3000",
+	"--fastio1",
+	"--fastio2",
 	($exclude eq ""	? () : ("--exclude", $exclude)),
 	($exclude eq ""	? () : ("--exclude", $exclude)),
 	($subfolder2 eq "" ? () : ('--subfolder2', $subfolder2)),
 	($subfolder2 eq "" ? () : ('--subfolder2', $subfolder2)),
 	($maxage eq "0" ? () : ('--maxage', $maxage)),
 	($maxage eq "0" ? () : ('--maxage', $maxage)),