From e5080ccb080c7c2aafb00fa6cdfbc07ae74f7460 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 3 Oct 2019 16:16:45 +0100 Subject: [PATCH] eximconf: fix escaping in RT_SUBJECT macro It's included in a doule-quoted string, which imposes extra escaping requirements Signed-off-by: Adam D. Barratt --- modules/exim/templates/eximconf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 6dc0a5960..4b57ec443 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -303,7 +303,7 @@ GREYLIST_LOCAL_PARTS = ${if match_domain{$domain}{+virtual_domains}\ {${lookup{$local_part}lsearch{/etc/exim4/grey_users}{$local_part}{}}}} : \ ${lookup{$local_part}lsearch{/var/lib/misc/$primary_hostname/mail-greylist}{$local_part}{}} <%- if @is_rtmaster -%> -RT_SUBJECT = Subject: ${if and {{first_delivery}{match {${sg {$rh_Subject:}{\N\n\s+\N}{ }}}{\N(?is)(.*?)\[?debian rt\]?[:\s]*(.*)\N}}} {$1$2}{$h_subject:}} +RT_SUBJECT = Subject: ${if and {{first_delivery}{match {${sg{$rh_Subject:}{\\N\\n\[\\t \]\+\\N}{ }}}{\\N(?i)(.*?)\[?debian rt\]?[:\t ]*(.*)\\N}}} {$1$2}{$h_subject:}} RT_QUEUE_MAP = /srv/rt.debian.org/mail/rt_queue_map <%- end -%> -- 2.20.1