From b710cb751b398c12c5eec7785d319d99f54a8a2e Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 10 Dec 2018 13:24:51 +0100 Subject: [PATCH] [Dovecot] Split imapsync cron by -- --- data/Dockerfiles/dovecot/imapsync_cron.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/dovecot/imapsync_cron.pl b/data/Dockerfiles/dovecot/imapsync_cron.pl index be5cb411..1976f8ec 100755 --- a/data/Dockerfiles/dovecot/imapsync_cron.pl +++ b/data/Dockerfiles/dovecot/imapsync_cron.pl @@ -18,7 +18,13 @@ if ($imapsync_running eq 1) exit; } -sub qqw($) { split /\s+/, $_[0] } +sub qqw($) { + my @values = split('(?=--)', $_[0]); + foreach my $val (@values) { + $val=trim($val); + } + return @values +} $DBNAME = ''; $DBUSER = '';