aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-17 19:04:04 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-17 19:04:04 +0400
commitc0cd8e414ad614ed7a3d9c2122abffc78db7602c (patch)
tree760d166ae0d815a76c41e6237bcf4965dcfea08b /src/message.c
parent83f0dbe021888839dbcc3b3d6dff48b8da21cffb (diff)
downloadrspamd-c0cd8e414ad614ed7a3d9c2122abffc78db7602c.tar.gz
rspamd-c0cd8e414ad614ed7a3d9c2122abffc78db7602c.zip
* Fix urls extracting, avoid code repeating
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c
index 14f9245cb..4d6ba95d1 100644
--- a/src/message.c
+++ b/src/message.c
@@ -278,7 +278,7 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont
if (g_mime_content_type_is_type (type, "text", "html") || g_mime_content_type_is_type (type, "text", "xhtml")) {
msg_debug ("mime_foreach_callback: got urls from text/html part");
- url_parse_html (task, part_content);
+ url_parse_text (task, part_content, TRUE);
text_part = memory_pool_alloc (task->task_pool, sizeof (struct mime_text_part));
text_part->orig = convert_text_to_utf (task, part_content, type, text_part);
@@ -290,7 +290,7 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont
}
else if (g_mime_content_type_is_type (type, "text", "plain")) {
msg_debug ("mime_foreach_callback: got urls from text/plain part");
- url_parse_text (task, part_content);
+ url_parse_text (task, part_content, FALSE);
text_part = memory_pool_alloc (task->task_pool, sizeof (struct mime_text_part));
text_part->orig = convert_text_to_utf (task, part_content, type, text_part);