}
}
else {
- if (mime_part->parent_part) {
- struct rspamd_mime_part *parent = mime_part->parent_part;
-
- if (IS_PART_MULTIPART (parent) && parent->specific.mp->children->len == 2) {
- /* Do not extract urls from HTML at all */
- }
- else {
- rspamd_url_text_extract (task->task_pool, task, text_part,
- RSPAMD_URL_FIND_STRICT);
- }
- }
- else {
- rspamd_url_text_extract (task->task_pool, task, text_part,
- RSPAMD_URL_FIND_STRICT);
- }
+ rspamd_url_text_extract (task->task_pool, task, text_part,
+ RSPAMD_URL_FIND_STRICT);
}
if (text_part->exceptions) {
gchar st;
} url_match_t;
-#define URL_FLAG_NOHTML (1 << 0)
-#define URL_FLAG_TLD_MATCH (1 << 1)
-#define URL_FLAG_STAR_MATCH (1 << 2)
-#define URL_FLAG_REGEXP (1 << 3)
+#define URL_FLAG_NOHTML (1u << 0u)
+#define URL_FLAG_TLD_MATCH (1u << 1u)
+#define URL_FLAG_STAR_MATCH (1u << 2u)
+#define URL_FLAG_REGEXP (1u << 3u)
struct url_callback_data;
{"sip:", "", url_web_start, url_web_end,
0},
{"www.", "http://", url_web_start, url_web_end,
- URL_FLAG_NOHTML},
+ 0},
{"ftp.", "ftp://", url_web_start, url_web_end,
- URL_FLAG_NOHTML},
+ 0},
/* Likely emails */
{"@", "mailto://", url_email_start, url_email_end,
- URL_FLAG_NOHTML}
+ 0}
};