From a82935802cfcb329ff0ed70a34cc3557d69779ca Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 1 Dec 2011 17:03:00 +0300 Subject: [PATCH] Ignore something that looks like email but has no username. --- src/url.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/url.c b/src/url.c index 89abe5edc..8e0449093 100644 --- a/src/url.c +++ b/src/url.c @@ -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 { -- 2.39.5