From 3271ac46929b7a7b2b265d3869a34cd0df280bf5 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 26 Mar 2018 10:31:25 +0200 Subject: [PATCH] [Minor] Use single quotes in some config samples --- conf/modules.d/antivirus.conf | 2 +- conf/modules.d/multimap.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/modules.d/antivirus.conf b/conf/modules.d/antivirus.conf index 63fc555a9..16f38fbda 100644 --- a/conf/modules.d/antivirus.conf +++ b/conf/modules.d/antivirus.conf @@ -39,7 +39,7 @@ antivirus { # symbol will be yielded if a match is found. If no match is found, default symbol is yielded. patterns { # symbol_name = "pattern"; - JUST_EICAR = "^Eicar-Test-Signature$"; + JUST_EICAR = '^Eicar-Test-Signature$'; } # `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned. whitelist = "/etc/rspamd/antivirus.wl"; diff --git a/conf/modules.d/multimap.conf b/conf/modules.d/multimap.conf index 358b7207b..b71f4d653 100644 --- a/conf/modules.d/multimap.conf +++ b/conf/modules.d/multimap.conf @@ -148,7 +148,7 @@ sender_from_whitelist_user { sender_from_regexp { type = "header"; header = "from"; - filter = "regexp:/.*@/"; + filter = 'regexp:/.*@/'; map = "file:///tmp/from_re.map"; symbol = "SENDER_FROM_REGEXP"; } @@ -160,7 +160,7 @@ url_map { } url_tld_re { type = "url"; - filter = "tld:regexp:/\.[^.]+$/"; # Extracts the last component of URL + filter = 'tld:regexp:/\.[^.]+$/'; # Extracts the last component of URL map = "file:///tmp/url.map"; symbol = "URL_MAP_RE"; } -- 2.39.5