chiark
/
gitweb
/
~mdw
/
exim-config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec1fe50
)
spam.m4: Check that non-userv spam thresholds are well-formed.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 26 Jan 2014 16:01:17 +0000
(16:01 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 26 Jan 2014 16:01:17 +0000
(16:01 +0000)
Both are untrustworthy sources.
spam.m4
patch
|
blob
|
blame
|
history
diff --git
a/spam.m4
b/spam.m4
index e480880b315541f932b015fad7e6b51c72e64b57..57b0c27260a72730fc3b1e368cac722844c8ee31 100644
(file)
--- a/
spam.m4
+++ b/
spam.m4
@@
-50,7
+50,9
@@
fetch_spam_limit:
@$domain/\
$sender_address} \
nwildlsearch {CONF_userconf_dir/spam-limit} \
- {spam_limit=$value} \
+ {${if match{$value}{\N^[0-9]+$\N} \
+ {spam_limit=$value} \
+ {}}} \
{}}} \
{}} \
${if exists {CONF_userconf_dir/spam-limit.userv} \