eximconf: use a more idiomatic way of "resetting" a variable
authorAdam D. Barratt <adam@adam-barratt.org.uk>
Tue, 24 Sep 2019 19:48:22 +0000 (20:48 +0100)
committerAdam D. Barratt <adam@adam-barratt.org.uk>
Wed, 25 Sep 2019 20:30:56 +0000 (21:30 +0100)
An empty string is as valid as any other, so there's no need for hacks.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
modules/exim/templates/eximconf.erb

index 858c94b..b4363a6 100644 (file)
@@ -293,10 +293,11 @@ acl_spamlovers:
   deny
 
 acl_getprofile:
-  # This is a bad hack to reset the variable, by defining it be something
-  # never referenced.
 
-  warn    set acl_m_rprf = $acl_m_undefined
+  # Determine the mail profile for this recipient.
+  # An empty string implies no match has been found.
+
+  warn    set acl_m_rprf = 
 
   warn    recipients     = survey@popcon.debian.org
           set acl_m_rprf = PopconMail