]> source.dussan.org Git - rspamd.git/commit
[Rework] URL: Another update for urls extraction logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Mar 2020 14:50:24 +0000 (14:50 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Mar 2020 14:50:24 +0000 (14:50 +0000)
commitf605d670505baad46b8ef4cdfa3dc32f48d4150e
tree04f959e423960adb60c99dc0c35cb3a10e5d8595
parent7299efb5eeddde80511be8a6285d94c333fc8ea3
[Rework] URL: Another update for urls extraction logic

URL extraction from HTML parts should look like this:
1. Extract href links
2. Convert HTML to plain text and extract:
  a) (http|https|ftp)://foo.bar and www.foo
  b) email like strings \bfoo@bar.baz\b .
For all extracted strings check if we have host with a domain from the public suffix.
src/libmime/message.c
src/libserver/url.c