Vsevolod Stakhov
d4193cd267
Add test case.
9 years ago
Vsevolod Stakhov
ce44c3c10b
Find HTML comment end properly.
9 years ago
Vsevolod Stakhov
7faea5fe77
Misprint.
9 years ago
Vsevolod Stakhov
c1a30b78b2
Remove debug.
9 years ago
Vsevolod Stakhov
15b8293ffc
Do not use reconf for pure lua functions.
9 years ago
Vsevolod Stakhov
a0f8924ef0
More fixes to html parsing.
9 years ago
Vsevolod Stakhov
e5345b46dd
Fix content saving in html parser.
9 years ago
Vsevolod Stakhov
86069f3768
Add html extraction unit test.
9 years ago
Vsevolod Stakhov
5e8eda10b5
Add lua method to extract text from html.
9 years ago
Vsevolod Stakhov
97b6ced5f5
Merge branch 'html-rework'
9 years ago
Vsevolod Stakhov
c7f2ca45ba
Use the new API.
9 years ago
Vsevolod Stakhov
c81b5b124a
Use new HTML API in message.c
9 years ago
Vsevolod Stakhov
757d700038
Further rework of html parser.
9 years ago
Vsevolod Stakhov
a7c1512c1e
Merge pull request #333 from fatalbanana/master
Doc fix: phishing strict_domains syntax (reported by @Fullmetal8ender )
9 years ago
Vsevolod Stakhov
a76fd88266
More rework.
9 years ago
Vsevolod Stakhov
f195719ee3
Use more fine-grained input to simplify tests.
9 years ago
Vsevolod Stakhov
4c65c411bd
Start FSM for parsing HTML parts.
9 years ago
Andrew Lewis
d287dea792
Doc fix: phishing strict_domains syntax (reported by @Fullmetal8ender)
9 years ago
Vsevolod Stakhov
5b5cae6782
Refactor html.h.
9 years ago
Vsevolod Stakhov
c9ed268e92
Rework R_PARTS_DIFFER rule.
9 years ago
Vsevolod Stakhov
f999cd8e8b
Allow to get different types of memory pool variables.
9 years ago
Vsevolod Stakhov
96f05a55a6
Add util.tanh lua utility.
9 years ago
Vsevolod Stakhov
d32b1c887e
Move distance calculation to message parsing.
9 years ago
Vsevolod Stakhov
b98130a443
Implement levenshtein distance for words.
9 years ago
Vsevolod Stakhov
f53b543ac7
Disable signatures detection as it breaks stuff.
9 years ago
Vsevolod Stakhov
9efde9864c
Fix dereference of NULL pointer.
9 years ago
Vsevolod Stakhov
a21fb8ed5b
Start removing of old fuzzy algorithm.
9 years ago
Vsevolod Stakhov
02b6117a39
Implement skipping of signatures in text messages.
9 years ago
Vsevolod Stakhov
828c31c528
Rework ip_score plugin to support ASN, country and ipnet.
9 years ago
Vsevolod Stakhov
f65d950bd1
Minor fixes in lua.
9 years ago
Vsevolod Stakhov
ca693018d6
Do not treat classify error as fatal error.
9 years ago
Vsevolod Stakhov
7eadc580cf
Fix unit test building and starting.
9 years ago
Vsevolod Stakhov
4271f629ed
Fix splitting in case of bogus regexp.
9 years ago
Vsevolod Stakhov
a850877478
Rename memory pool functions.
9 years ago
Vsevolod Stakhov
3c99c2f5af
Fix some more issues found after mime rework.
9 years ago
Vsevolod Stakhov
b7865b899b
Add ASN, country and ipnet lookups.
9 years ago
Vsevolod Stakhov
871b3c9758
Avoid dependency on ARCH dep header.
9 years ago
Vsevolod Stakhov
94b1912536
Fix received headers parsing.
9 years ago
Vsevolod Stakhov
fd4dfe5811
GList -> GPtrArray for parts
9 years ago
Vsevolod Stakhov
d2a938d398
Rework parts and task structure:
- Now text_parts, parts and received are arrays
- Pre-allocate arrays with some reasonable defaults
- Use arrays instead of lists in plugins and checks
- Remove unused fields from task structure
- Rework mime_foreach callback function
- Remove deprecated scan_milliseconds field
9 years ago
Vsevolod Stakhov
444c70ff89
Remove legacy checks.
9 years ago
Vsevolod Stakhov
b7b184bb90
Add url encoded tests.
9 years ago
Vsevolod Stakhov
3ff2ccae3d
Allow query parameters for files.
9 years ago
Vsevolod Stakhov
c24c45386f
Add a simple functional test for scanning a file.
9 years ago
Vsevolod Stakhov
f7346f669c
Fix issues on learning files.
9 years ago
Vsevolod Stakhov
e0470a4f6f
Allow scanning local files in rspamd.
9 years ago
Vsevolod Stakhov
5494406060
Parse incoming request url.
9 years ago
Vsevolod Stakhov
89711694a9
Finally fix an issue with data isolation in sqlite.
9 years ago
Vsevolod Stakhov
698b03d48c
Fix some minor issues with sqlite3.
9 years ago
Vsevolod Stakhov
09f2ef070f
Remove google DNS from tests.
9 years ago