diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-17 19:04:04 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-17 19:04:04 +0400 |
commit | c0cd8e414ad614ed7a3d9c2122abffc78db7602c (patch) | |
tree | 760d166ae0d815a76c41e6237bcf4965dcfea08b /utils | |
parent | 83f0dbe021888839dbcc3b3d6dff48b8da21cffb (diff) | |
download | rspamd-c0cd8e414ad614ed7a3d9c2122abffc78db7602c.tar.gz rspamd-c0cd8e414ad614ed7a3d9c2122abffc78db7602c.zip |
* Fix urls extracting, avoid code repeating
Diffstat (limited to 'utils')
-rw-r--r-- | utils/url_extracter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/url_extracter.c b/utils/url_extracter.c index 8e16a689f..1b98fa67e 100644 --- a/utils/url_extracter.c +++ b/utils/url_extracter.c @@ -96,11 +96,11 @@ mime_foreach_callback (GMimeObject *part, gpointer user_data) task->parts = g_list_prepend (task->parts, mime_part); if (g_mime_content_type_is_type (type, "text", "html")) { printf ("Found text/html part\n"); - url_parse_html (task, part_content); + url_parse_text (task, part_content, TRUE); } else if (g_mime_content_type_is_type (type, "text", "plain")) { printf ("Found text/plain part\n"); - url_parse_text (task, part_content); + url_parse_text (task, part_content, FALSE); } } } |