projects
/
org.ibex.mail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
298c9f3
)
Whitelist.java: never send a challenge in response to a List-Id or List-Post
author
adam
<adam@megacz.com>
Mon, 22 Jun 2009 00:13:29 +0000
(
00:13
+0000)
committer
adam
<adam@megacz.com>
Mon, 22 Jun 2009 00:13:29 +0000
(
00:13
+0000)
darcs-hash:
20090622001329
-5007d-
91303dab4c4f3e6e3aedc516e3819956b7ae49b1
.gz
src/org/ibex/mail/Whitelist.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/mail/Whitelist.java
b/src/org/ibex/mail/Whitelist.java
index
7355a5c
..
9842320
100644
(file)
--- a/
src/org/ibex/mail/Whitelist.java
+++ b/
src/org/ibex/mail/Whitelist.java
@@
-141,6
+141,10
@@
public class Whitelist extends SqliteDB {
"with Auto-Submitted=\""+m.headers.get("Auto-Submitted")+"\"");
return;
}
+ if (m.headers.get("List-Id") != null || m.headers.get("List-Post") != null) {
+ Log.warn(this, "refusing to send a challenge to a message with a List-Id or List-Post header");
+ return;
+ }
Address from = Address.parse("adam@megacz.com");