summaryrefslogtreecommitdiff
path: root/docker-mailserver-sieve-validation.sh
blob: 3fa642444a2261a3959dc497f9ff7ddbfd1781b9 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

SIEVE_ROOT=$(docker compose exec mailserver bash -c "ls /tmp/docker-mailserver/*.dovecot.sieve");
SIEVE_INCLUDE=$(docker compose exec mailserver bash -c "ls /tmp/docker-mailserver/sieve-include/*.sieve")
FILES=$(echo $SIEVE_ROOT; echo $SIEVE_INCLUDE)

for file in $FILES; do
  docker compose exec mailserver sievec "${file}"
done