summaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/mime_expressions.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index ab685b2c0..0bee87f4c 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -1342,11 +1342,21 @@ rspamd_recipients_distance (struct rspamd_task *task, GArray * args,
/* Common name part */
hits++;
}
+#if 0
+ /* XXX: when we have a typical mail that is headed towards
+ * several users within the same domain, then this rule
+ * leads to a false-positive.
+ * We actually need to match host against tld, but this is currently
+ * too expensive.
+ *
+ * TODO: think about normal representation of InternetAddress shit
+ */
else if (ar[i].addr && ar[j].addr &&
g_ascii_strcasecmp (ar[i].addr, ar[j].addr) == 0) {
/* Common address part, but different name */
hits++;
}
+#endif
total++;
}
}