summaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c6
1 files 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 {