From 2c7da66570999dcd21f11f976dc6ec27d820f45c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 4 Oct 2024 19:28:06 -0700 Subject: Use @ when accessing variables in templates Access without the @ symbol is the older method and is discouraged. --- modules/postfix/templates/transport_regexp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/postfix/templates/transport_regexp') diff --git a/modules/postfix/templates/transport_regexp b/modules/postfix/templates/transport_regexp index 3eb5494f..941b77df 100644 --- a/modules/postfix/templates/transport_regexp +++ b/modules/postfix/templates/transport_regexp @@ -2,9 +2,9 @@ ml_domain = 'ml\.' + domain.gsub('.','\.') %> <%- if classes.include?('sympa::server') -%> -/^.*+owner\@<%= ml_domain %>$/ sympabounce: -/^bounce+.*\@<%= ml_domain %>$/ sympabounce: -/^.*\@<%= ml_domain %>$/ sympa: +/^.*+owner\@<%= @ml_domain %>$/ sympabounce: +/^bounce+.*\@<%= @ml_domain %>$/ sympabounce: +/^.*\@<%= @ml_domain %>$/ sympa: <%- else -%> -/^.*\@<%= ml_domain %>$/ smtp:sucuk.mageia.org +/^.*\@<%= @ml_domain %>$/ smtp:sucuk.mageia.org <%- end -%> -- cgit v1.2.1