chiark / gitweb /
spam.m4: Allow negative thresholds.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 26 Jan 2014 16:02:17 +0000 (16:02 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 26 Jan 2014 16:02:17 +0000 (16:02 +0000)
spam.m4

diff --git a/spam.m4 b/spam.m4
index 57b0c27260a72730fc3b1e368cac722844c8ee31..3e469bd550b6549b5e26e97ef0967aee8f00d804 100644 (file)
--- a/spam.m4
+++ b/spam.m4
@@ -50,7 +50,7 @@ fetch_spam_limit:
                                        @$domain/\
                                        $sender_address} \
                               nwildlsearch {CONF_userconf_dir/spam-limit} \
-                              {${if match{$value}{\N^[0-9]+$\N} \
+                              {${if match{$value}{\N^-?[0-9]+$\N} \
                                     {spam_limit=$value} \
                                     {}}} \
                               {}}} \
@@ -63,7 +63,7 @@ fetch_spam_limit:
                                        $local_part \
                                        $local_part_suffix \
                                        @$domain} \
-                           {${if match{$value}{\N^[0-9]+$\N} \
+                           {${if match{$value}{\N^-?[0-9]+$\N} \
                                  {spam_limit=$value} \
                                  {}}} \
                            {}}} \