summaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-02 17:48:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-02 17:48:39 +0000
commit588f6414939fa8f4116eb3dad0fa287962037e83 (patch)
tree3a860c40a36538439274c9638b9cf70b566c5657 /src/libmime
parent2e5ea6656041f61c5a2091878be439c63947b1cc (diff)
downloadrspamd-588f6414939fa8f4116eb3dad0fa287962037e83.tar.gz
rspamd-588f6414939fa8f4116eb3dad0fa287962037e83.zip
Try to fix SUSPICIOUS_RECIPS rule
Issue: #437
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++;
}
}