mail/rspamd: rename attachments_only in templating (#945)

This commit is contained in:
Michael
2018-10-30 14:42:06 +01:00
committed by Franco Fichtner
parent 42a2d5faca
commit acf83a6686
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,5 +1,6 @@
PLUGIN_NAME= rspamd
PLUGIN_VERSION= 1.3
PLUGIN_REVISION= 1
PLUGIN_COMMENT= Protect your network from spam
PLUGIN_DEPENDS= rspamd
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
@@ -9,9 +9,9 @@ clamav {
action = "reject";
{% endif %}
{% if helpers.exists('OPNsense.Rspamd.av.attachments-only') and OPNsense.Rspamd.av['attachments-only'] == '1' %}
attachments_only = true;
scan_mime_parts = true;
{% else %}
attachments_only = false;
scan_mime_parts = false;
{% endif %}
{% if helpers.exists('OPNsense.Rspamd.av.max-size') and OPNsense.Rspamd.av['max-size'] != '' %}
# If `max_size` is set, messages > n bytes in size are not scanned