瀏覽代碼

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. ;) "
Lucky88888 7 年之前
父節點
當前提交
48c85d08f2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/Dockerfiles/dovecot/imapsync_cron.pl

+ 1 - 1
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')),