1 |
brianr |
1.1 |
diff -urN smeserver-dovecot-extras-0.1.6.old/root/etc/e-smith/events/actions/dovecot-compile-sieve smeserver-dovecot-extras-0.1.6/root/etc/e-smith/events/actions/dovecot-compile-sieve |
2 |
|
|
--- smeserver-dovecot-extras-0.1.6.old/root/etc/e-smith/events/actions/dovecot-compile-sieve 2018-03-27 15:31:26.000000000 +0100 |
3 |
|
|
+++ smeserver-dovecot-extras-0.1.6/root/etc/e-smith/events/actions/dovecot-compile-sieve 2021-04-07 16:25:28.233252675 +0100 |
4 |
|
|
@@ -1,3 +1,9 @@ |
5 |
|
|
#!/bin/bash |
6 |
|
|
|
7 |
|
|
-/usr/bin/sievec /usr/libexec/dovecot/sieve/ |
8 |
|
|
+status=$(/sbin/e-smith/config getprop spamassassin UseBayes || echo 0) |
9 |
|
|
+if [ "$status" = "1" ] |
10 |
|
|
+then |
11 |
|
|
+ systemctl restart dovecot |
12 |
|
|
+ /usr/bin/sievec /usr/libexec/dovecot/sieve/ |
13 |
|
|
+fi |
14 |
|
|
+#/usr/bin/sievec /usr/libexec/dovecot/sieve/ |