aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'handlers')
-rw-r--r--handlers/maildir.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/handlers/maildir.in b/handlers/maildir.in
index 0d88e92..7a68e85 100644
--- a/handlers/maildir.in
+++ b/handlers/maildir.in
@@ -62,7 +62,10 @@ srcdir=${srcdir%/}
[ "$multiconnection" == "notset" ] && fatal "The maildir handler uses a very different destination format. See the example .maildir for more information"
-[ ! $test ] || testflags="--dry-run -v"
+if [ $test ]; then
+ testflags="--dry-run -v"
+fi
+
rsyncflags="$testflags -e 'ssh -p $destport' -r -v --ignore-existing --delete --size-only --bwlimit=$speedlimit"
excludes="--exclude '.Trash/\*' --exclude '.Mistakes/\*' --exclude '.Spam/\*'"