diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-01 17:03:00 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-12-01 17:03:00 +0300 |
commit | a82935802cfcb329ff0ed70a34cc3557d69779ca (patch) | |
tree | 71b19ef9af713c42f0154b19eaabdab37f7fc374 | |
parent | 51d40c08d3d3ed80f84e15c72f4b71b9865cb7b6 (diff) | |
download | rspamd-a82935802cfcb329ff0ed70a34cc3557d69779ca.tar.gz rspamd-a82935802cfcb329ff0ed70a34cc3557d69779ca.zip |
Ignore something that looks like email but has no username.
-rw-r--r-- | src/url.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1195,8 +1195,10 @@ url_parse_text (memory_pool_t * pool, struct worker_task *task, struct mime_text ex->pos = url_start - begin; ex->len = url_end - url_start; if (new->protocol == PROTOCOL_MAILTO) { - if (!g_tree_lookup (task->emails, new)) { - g_tree_insert (task->emails, new, new); + if (new->userlen > 0) { + if (!g_tree_lookup (task->emails, new)) { + g_tree_insert (task->emails, new, new); + } } } else { |