Vsevolod Stakhov
d4193cd267
Add test case.
2015-07-16 14:34:09 +01:00
Vsevolod Stakhov
ce44c3c10b
Find HTML comment end properly.
2015-07-16 14:32:55 +01:00
Vsevolod Stakhov
7faea5fe77
Misprint.
2015-07-16 14:09:51 +01:00
Vsevolod Stakhov
c1a30b78b2
Remove debug.
2015-07-16 14:04:25 +01:00
Vsevolod Stakhov
15b8293ffc
Do not use reconf for pure lua functions.
2015-07-16 14:03:54 +01:00
Vsevolod Stakhov
a0f8924ef0
More fixes to html parsing.
2015-07-16 13:59:24 +01:00
Vsevolod Stakhov
e5345b46dd
Fix content saving in html parser.
2015-07-16 13:01:09 +01:00
Vsevolod Stakhov
86069f3768
Add html extraction unit test.
2015-07-16 13:00:51 +01:00
Vsevolod Stakhov
5e8eda10b5
Add lua method to extract text from html.
2015-07-16 12:09:19 +01:00
Vsevolod Stakhov
97b6ced5f5
Merge branch 'html-rework'
2015-07-16 09:39:27 +01:00
Vsevolod Stakhov
c7f2ca45ba
Use the new API.
2015-07-16 09:38:19 +01:00
Vsevolod Stakhov
c81b5b124a
Use new HTML API in message.c
2015-07-16 09:36:06 +01:00
Vsevolod Stakhov
757d700038
Further rework of html parser.
2015-07-16 09:32:28 +01:00
Vsevolod Stakhov
a7c1512c1e
Merge pull request #333 from fatalbanana/master
...
Doc fix: phishing strict_domains syntax (reported by @Fullmetal8ender)
2015-07-15 22:40:37 +01:00
Vsevolod Stakhov
a76fd88266
More rework.
2015-07-15 17:31:00 +01:00
Vsevolod Stakhov
f195719ee3
Use more fine-grained input to simplify tests.
2015-07-15 17:03:12 +01:00
Vsevolod Stakhov
4c65c411bd
Start FSM for parsing HTML parts.
2015-07-15 15:26:00 +01:00
Andrew Lewis
d287dea792
Doc fix: phishing strict_domains syntax (reported by @Fullmetal8ender)
2015-07-15 13:17:56 +02:00
Vsevolod Stakhov
5b5cae6782
Refactor html.h.
2015-07-15 11:49:20 +01:00
Vsevolod Stakhov
c9ed268e92
Rework R_PARTS_DIFFER rule.
2015-07-15 00:22:19 +01:00
Vsevolod Stakhov
f999cd8e8b
Allow to get different types of memory pool variables.
2015-07-15 00:22:03 +01:00
Vsevolod Stakhov
96f05a55a6
Add util.tanh lua utility.
2015-07-15 00:11:15 +01:00
Vsevolod Stakhov
d32b1c887e
Move distance calculation to message parsing.
2015-07-14 23:58:56 +01:00
Vsevolod Stakhov
b98130a443
Implement levenshtein distance for words.
2015-07-14 19:07:49 +01:00
Vsevolod Stakhov
f53b543ac7
Disable signatures detection as it breaks stuff.
2015-07-14 19:07:12 +01:00
Vsevolod Stakhov
9efde9864c
Fix dereference of NULL pointer.
2015-07-14 19:06:59 +01:00
Vsevolod Stakhov
a21fb8ed5b
Start removing of old fuzzy algorithm.
2015-07-14 18:48:42 +01:00
Vsevolod Stakhov
02b6117a39
Implement skipping of signatures in text messages.
2015-07-14 17:33:31 +01:00
Vsevolod Stakhov
828c31c528
Rework ip_score plugin to support ASN, country and ipnet.
2015-07-14 15:23:34 +01:00
Vsevolod Stakhov
f65d950bd1
Minor fixes in lua.
2015-07-14 15:23:22 +01:00
Vsevolod Stakhov
ca693018d6
Do not treat classify error as fatal error.
2015-07-14 14:46:04 +01:00
Vsevolod Stakhov
7eadc580cf
Fix unit test building and starting.
2015-07-14 14:45:46 +01:00
Vsevolod Stakhov
4271f629ed
Fix splitting in case of bogus regexp.
2015-07-14 13:56:05 +01:00
Vsevolod Stakhov
a850877478
Rename memory pool functions.
2015-07-14 12:49:11 +01:00
Vsevolod Stakhov
3c99c2f5af
Fix some more issues found after mime rework.
2015-07-14 10:10:34 +01:00
Vsevolod Stakhov
b7865b899b
Add ASN, country and ipnet lookups.
2015-07-14 09:57:34 +01:00
Vsevolod Stakhov
871b3c9758
Avoid dependency on ARCH dep header.
2015-07-14 00:10:49 +01:00
Vsevolod Stakhov
94b1912536
Fix received headers parsing.
2015-07-14 00:09:30 +01:00
Vsevolod Stakhov
fd4dfe5811
GList -> GPtrArray for parts
2015-07-14 00:08:24 +01:00
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
2015-07-13 17:46:50 +01:00
Vsevolod Stakhov
444c70ff89
Remove legacy checks.
2015-07-13 17:46:41 +01:00
Vsevolod Stakhov
b7b184bb90
Add url encoded tests.
2015-07-11 22:05:14 +01:00
Vsevolod Stakhov
3ff2ccae3d
Allow query parameters for files.
2015-07-11 21:58:32 +01:00
Vsevolod Stakhov
c24c45386f
Add a simple functional test for scanning a file.
2015-07-10 17:40:58 +01:00
Vsevolod Stakhov
f7346f669c
Fix issues on learning files.
2015-07-10 17:40:42 +01:00
Vsevolod Stakhov
e0470a4f6f
Allow scanning local files in rspamd.
2015-07-10 17:24:18 +01:00
Vsevolod Stakhov
5494406060
Parse incoming request url.
2015-07-10 16:57:55 +01:00
Vsevolod Stakhov
89711694a9
Finally fix an issue with data isolation in sqlite.
2015-07-10 16:24:32 +01:00
Vsevolod Stakhov
698b03d48c
Fix some minor issues with sqlite3.
2015-07-10 16:21:26 +01:00
Vsevolod Stakhov
09f2ef070f
Remove google DNS from tests.
2015-07-10 15:41:03 +01:00