From 48c85d08f2d3cab27d2f56f04a7d81c1f50593fe Mon Sep 17 00:00:00 2001
From: Lucky88888 <30867121+Lucky88888@users.noreply.github.com>
Date: Mon, 26 Feb 2018 15:26:17 +0000
Subject: [PATCH] fix maxbytespersecond issue

Fixed $maxbytespersecond configurable option. This was still not working because it took the DB value of maxage.
"First GitHub update for me, so please tell if I should have something different. ;) "
---
 data/Dockerfiles/dovecot/imapsync_cron.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/Dockerfiles/dovecot/imapsync_cron.pl b/data/Dockerfiles/dovecot/imapsync_cron.pl
index 47f9bbf7..25f4b42c 100755
--- a/data/Dockerfiles/dovecot/imapsync_cron.pl
+++ b/data/Dockerfiles/dovecot/imapsync_cron.pl
@@ -85,7 +85,7 @@ while ($row = $sth->fetchrow_arrayref()) {
 	($exclude eq ""	? () : ("--exclude", $exclude)),
 	($subfolder2 eq "" ? () : ('--subfolder2', $subfolder2)),
 	($maxage eq "0" ? () : ('--maxage', $maxage)),
-  ($maxbytespersecond eq "0" ? () : ('--maxbytespersecond', $maxage)),
+  ($maxbytespersecond eq "0" ? () : ('--maxbytespersecond', $maxbytespersecond)),
 	($delete2duplicates	ne "1" ? () : ('--delete2duplicates')),
 	($delete1	ne "1" ? () : ('--delete')),
   ($delete2 ne "1" ? () : ('--delete2')),