]>
source.dussan.org Git - rspamd.git/log
Mikhail Galanin [Fri, 21 Sep 2018 16:14:22 +0000 (17:14 +0100)]
[Test] More test cases for selectors
Also added negative cases (i.e. it doesn't work when it shouldn't) and combinations of selectors
Vsevolod Stakhov [Fri, 21 Sep 2018 15:48:43 +0000 (16:48 +0100)]
Merge pull request #2517 from negram/selector-user-defined-order
[Minor] Order selector values how user placed them in the config
Mikhail Galanin [Fri, 21 Sep 2018 15:38:01 +0000 (16:38 +0100)]
[Minor] Unused variable
Mikhail Galanin [Fri, 21 Sep 2018 14:59:44 +0000 (15:59 +0100)]
[Minor] tbl append -> rawset()
Mikhail Galanin [Fri, 21 Sep 2018 14:53:01 +0000 (15:53 +0100)]
[Minor] Order selector valus how user placed them in the config
Vsevolod Stakhov [Fri, 21 Sep 2018 14:48:20 +0000 (15:48 +0100)]
[Fix] Fix lua_util.str_split in case of delimiters set
Vsevolod Stakhov [Fri, 21 Sep 2018 12:29:21 +0000 (13:29 +0100)]
Merge pull request #2516 from andy-igoshin/master
support for non-TLD domains
Vsevolod Stakhov [Fri, 21 Sep 2018 12:28:51 +0000 (13:28 +0100)]
Merge pull request #2515 from negram/log-error-selector
[Minor] Add more info into error record
Mikhail Galanin [Fri, 21 Sep 2018 12:28:15 +0000 (13:28 +0100)]
[Minor] do not mix %1 and %s
Vsevolod Stakhov [Fri, 21 Sep 2018 12:25:53 +0000 (13:25 +0100)]
Merge pull request #2514 from negram/selector-error-check
Selector error check
Andrey Igoshin [Fri, 21 Sep 2018 12:11:04 +0000 (15:11 +0300)]
support for non-TLD domains
Mikhail Galanin [Fri, 21 Sep 2018 11:30:00 +0000 (12:30 +0100)]
[Minor] Add more info into error record
Mikhail Galanin [Fri, 21 Sep 2018 11:24:41 +0000 (12:24 +0100)]
[Minor] Return nil if unknown processor was used
Mikhail Galanin [Fri, 21 Sep 2018 11:24:05 +0000 (12:24 +0100)]
[Minor] Return nil if a random string used as selector
Vsevolod Stakhov [Fri, 21 Sep 2018 09:48:33 +0000 (10:48 +0100)]
Merge pull request #2512 from moisseev/eslint
[WebUI] Fix throughput data consolidation
Vsevolod Stakhov [Fri, 21 Sep 2018 09:48:16 +0000 (10:48 +0100)]
Merge pull request #2513 from negram/unit-test-improvements
Unit test improvements
Mikhail Galanin [Fri, 21 Sep 2018 08:56:49 +0000 (09:56 +0100)]
[Test] Small fixes on diff renderer
Mikhail Galanin [Fri, 21 Sep 2018 08:56:11 +0000 (09:56 +0100)]
[Test] Use init_url() frim the new helper
Mikhail Galanin [Fri, 21 Sep 2018 08:54:51 +0000 (09:54 +0100)]
[Test] Added test helper module
Alexander Moisseev [Fri, 21 Sep 2018 06:22:50 +0000 (09:22 +0300)]
[Minor] Use .forEach instead of .map
as we only need to iterate
Alexander Moisseev [Fri, 21 Sep 2018 06:11:54 +0000 (09:11 +0300)]
[WebUI] Fix throughput data consolidation
Vsevolod Stakhov [Thu, 20 Sep 2018 16:14:40 +0000 (17:14 +0100)]
Merge pull request #2510 from negram/more-test
[Test] more tests
Vsevolod Stakhov [Thu, 20 Sep 2018 16:14:24 +0000 (17:14 +0100)]
Merge pull request #2511 from negram/table-diff
[Test] Nicely print table difference when they do not match
Mikhail Galanin [Thu, 20 Sep 2018 15:36:35 +0000 (16:36 +0100)]
[Test] Nicely print table difference when they do not match
Mikhail Galanin [Thu, 20 Sep 2018 15:02:17 +0000 (16:02 +0100)]
[Test] more tests
Vsevolod Stakhov [Thu, 20 Sep 2018 13:32:23 +0000 (14:32 +0100)]
[Minor] Map type
Vsevolod Stakhov [Thu, 20 Sep 2018 13:11:45 +0000 (14:11 +0100)]
[Minor] Sigh, disable redis schema usage for now
Vsevolod Stakhov [Thu, 20 Sep 2018 12:43:05 +0000 (13:43 +0100)]
Merge pull request #2509 from negram/fix-set_header
[Minor] Fixed task:set_request_header(), value is 3rd parameter
Vsevolod Stakhov [Thu, 20 Sep 2018 12:34:46 +0000 (13:34 +0100)]
[Minor] Fix more issues with reputation and redis schema
Vsevolod Stakhov [Thu, 20 Sep 2018 12:09:46 +0000 (13:09 +0100)]
[Minor] Rework reputation config structure and validation
Vsevolod Stakhov [Thu, 20 Sep 2018 12:08:31 +0000 (13:08 +0100)]
[Feature] Add schema validation for Redis settings
Mikhail Galanin [Thu, 20 Sep 2018 12:42:07 +0000 (13:42 +0100)]
[Minor] Fixed task:set_request_header(), value is 3rd parameter
Vsevolod Stakhov [Thu, 20 Sep 2018 10:33:46 +0000 (11:33 +0100)]
Merge pull request #2508 from negram/test-case-via-param
Test case via param
Mikhail Galanin [Thu, 20 Sep 2018 10:31:39 +0000 (11:31 +0100)]
[Test] Enable one more now-working test-case
Mikhail Galanin [Thu, 20 Sep 2018 10:30:47 +0000 (11:30 +0100)]
[Test] We don't this chek inside the test anymore. We have command-line param instead
Mikhail Galanin [Thu, 20 Sep 2018 10:26:36 +0000 (11:26 +0100)]
[Test] Pass test-case patten into test engine
So that now we can set which test cases should be runned:
$ ./test/rspamd-test -p /rspamd/lua -t selectors.lua -c "case .* rcpts"
$ ./test/rspamd-test -p /rspamd/lua -c "case 1st rcpts"
-c accepts Lua-pattern
Vsevolod Stakhov [Thu, 20 Sep 2018 09:51:33 +0000 (10:51 +0100)]
[Minor] Fix implicit conversion
Vsevolod Stakhov [Thu, 20 Sep 2018 08:48:51 +0000 (09:48 +0100)]
Merge pull request #2507 from negram/uncomment-working-cases
[Test] Uncommented cases which are now working
Vsevolod Stakhov [Thu, 20 Sep 2018 08:48:29 +0000 (09:48 +0100)]
Merge pull request #2506 from negram/selectors-fix
Selectors fix
Mikhail Galanin [Thu, 20 Sep 2018 08:44:44 +0000 (09:44 +0100)]
[Test] Uncommented cases which are now working
Mikhail Galanin [Thu, 20 Sep 2018 08:41:36 +0000 (09:41 +0100)]
[Minor] logical error, get_variable() accepts either one or two arguments
When second argument is nil it still considered as two arguments call, however 2nd one is expected to be string.
Mikhail Galanin [Thu, 20 Sep 2018 08:39:07 +0000 (09:39 +0100)]
[Minor] misprint
Alexander Moisseev [Wed, 19 Sep 2018 17:17:04 +0000 (20:17 +0300)]
[Minor] Use consistent return behavior
Vsevolod Stakhov [Wed, 19 Sep 2018 17:04:53 +0000 (18:04 +0100)]
Merge pull request #2502 from negram/selectors-test
[Test] Few "basic" test cases for selectors
Vsevolod Stakhov [Wed, 19 Sep 2018 17:04:38 +0000 (18:04 +0100)]
Merge pull request #2503 from negram/test-update
[Test] Rewrote test using new assertion
Vsevolod Stakhov [Wed, 19 Sep 2018 17:04:25 +0000 (18:04 +0100)]
Merge pull request #2504 from negram/run-specific-lua-suite
[Test] Added key to run specific lua-test
Vsevolod Stakhov [Wed, 19 Sep 2018 17:03:47 +0000 (18:03 +0100)]
[Minor] Some more selectors fixes
Alexander Moisseev [Wed, 19 Sep 2018 15:29:21 +0000 (18:29 +0300)]
[Minor] Guard for-in
Mikhail Galanin [Wed, 19 Sep 2018 14:42:38 +0000 (15:42 +0100)]
[Test] Added key to run specifig lua-test
example:
$ ./test/rspamd-test -p /rspamd/lua -t selectors.lua
no way to run two test suites atm
Mikhail Galanin [Wed, 19 Sep 2018 14:38:52 +0000 (15:38 +0100)]
[Test] Rewrote test using new assertion
Mikhail Galanin [Wed, 19 Sep 2018 14:06:43 +0000 (15:06 +0100)]
Merge branch 'master' into selectors-test
Mikhail Galanin [Wed, 19 Sep 2018 13:57:40 +0000 (14:57 +0100)]
[Test] Few "basic" test cases for selectors
Vsevolod Stakhov [Wed, 19 Sep 2018 13:56:34 +0000 (14:56 +0100)]
[Minor] Deepcopy is not good for recursive schemas
Vsevolod Stakhov [Wed, 19 Sep 2018 13:54:38 +0000 (14:54 +0100)]
Merge pull request #2501 from negram/new-assertions
[Test] Assertions for table comparison that are nicer to use
Mikhail Galanin [Wed, 19 Sep 2018 13:51:01 +0000 (14:51 +0100)]
[Test] Assertions for table comparsion that are nicer to use
Vsevolod Stakhov [Wed, 19 Sep 2018 13:33:34 +0000 (14:33 +0100)]
[Minor] Fix selectors iterators operations
Vsevolod Stakhov [Wed, 19 Sep 2018 12:42:06 +0000 (13:42 +0100)]
[Feature] Add generic selector to reputation module
Vsevolod Stakhov [Wed, 19 Sep 2018 10:54:30 +0000 (11:54 +0100)]
[Minor] Remove outdated lgpl code, deprecated long ago
Vsevolod Stakhov [Wed, 19 Sep 2018 10:51:58 +0000 (11:51 +0100)]
[Minor] Add tableshape library from https://github.com/leafo/tableshape
Vsevolod Stakhov [Wed, 19 Sep 2018 10:45:53 +0000 (11:45 +0100)]
[Feature] Add some recursion protection to lua logger
Vsevolod Stakhov [Wed, 19 Sep 2018 10:46:33 +0000 (11:46 +0100)]
Merge pull request #2500 from negram/init-urlparser-test
[Test] Init URL parser before running unit tests
Mikhail Galanin [Wed, 19 Sep 2018 09:11:52 +0000 (10:11 +0100)]
[Test] Init URL parser before running unit tests
Vsevolod Stakhov [Tue, 18 Sep 2018 16:46:35 +0000 (17:46 +0100)]
Merge pull request #2497 from negram/doc-misprint-fix
[Minor] Misprint in function doc
Mikhail Galanin [Tue, 18 Sep 2018 16:41:09 +0000 (17:41 +0100)]
[Minor] Misprint in function doc
Vsevolod Stakhov [Tue, 18 Sep 2018 16:01:32 +0000 (17:01 +0100)]
[Conf] Slashing change: add settings configuration to the vanilla set
Vsevolod Stakhov [Tue, 18 Sep 2018 15:50:20 +0000 (16:50 +0100)]
[Fix] Show the proper frame when using lua_util.debugm
Vsevolod Stakhov [Tue, 18 Sep 2018 15:47:18 +0000 (16:47 +0100)]
[Minor] Allow stack pos in logger.logx as well
Vsevolod Stakhov [Tue, 18 Sep 2018 15:45:39 +0000 (16:45 +0100)]
[Minor] Accept stack pos when showing debug in logger.debugm
Vsevolod Stakhov [Tue, 18 Sep 2018 15:28:48 +0000 (16:28 +0100)]
[Minor] Improve `hash` processor
Vsevolod Stakhov [Tue, 18 Sep 2018 15:26:30 +0000 (16:26 +0100)]
[Minor] Simplify methods invocation
Vsevolod Stakhov [Tue, 18 Sep 2018 14:38:09 +0000 (15:38 +0100)]
[Project] Implement implicit conversions to userdata
Vsevolod Stakhov [Tue, 18 Sep 2018 13:39:08 +0000 (14:39 +0100)]
[Project] Add method concept
Vsevolod Stakhov [Tue, 18 Sep 2018 13:26:30 +0000 (14:26 +0100)]
Merge pull request #2495 from negram/sa_body-regex
[Test] Input data for the last test case
Mikhail Galanin [Tue, 18 Sep 2018 10:22:52 +0000 (11:22 +0100)]
[Test] Input data for the last test case
Vsevolod Stakhov [Tue, 18 Sep 2018 10:16:02 +0000 (11:16 +0100)]
Merge pull request #2493 from negram/sa_body-regex
Sa body regex
Mikhail Galanin [Tue, 18 Sep 2018 10:12:28 +0000 (11:12 +0100)]
[Test] Added test for case "hello.\nagain"
Vsevolod Stakhov [Tue, 18 Sep 2018 10:11:35 +0000 (11:11 +0100)]
Merge pull request #2492 from negram/sa_body-regex
Sa body regex
Mikhail Galanin [Tue, 18 Sep 2018 10:05:33 +0000 (11:05 +0100)]
[Test] Forgotten config
Vsevolod Stakhov [Tue, 18 Sep 2018 09:51:20 +0000 (10:51 +0100)]
Merge pull request #2491 from negram/fix-use-after-free
[Minor] Fixed error reported by ASAN: do not try using already pop-ed…
Mikhail Galanin [Tue, 18 Sep 2018 09:41:21 +0000 (10:41 +0100)]
[Test] Test for regexps in {sa_body} and urls with newlines
Mikhail Galanin [Tue, 18 Sep 2018 09:34:37 +0000 (10:34 +0100)]
[Minor] Insert spaces only if text part is not suspected to be a link
sa_body requires newlines to be replaces with spaces.
However, some email clients highlight URL in triangular braces (<>) even if it's
broken by a newline. Let's just remove \n if current text part potentially
can be such URL.
Mikhail Galanin [Tue, 18 Sep 2018 09:20:28 +0000 (10:20 +0100)]
[Minor] Fixed error reported by ASAN: do not try usins already pop-ed watcher
The watcher is pop-ed once session is over but reference to the structure remains in Lua and then being removed from lua dtor.
In this case we try to pop it second time. Bad.
Vsevolod Stakhov [Mon, 17 Sep 2018 15:12:15 +0000 (16:12 +0100)]
Merge pull request #2489 from moisseev/eslint
[Minor] Remove extra parentheses
Vsevolod Stakhov [Mon, 17 Sep 2018 15:12:03 +0000 (16:12 +0100)]
Merge pull request #2488 from moisseev/fr
[Feature] Relax FORGED_RECIPIENTS
Vsevolod Stakhov [Mon, 17 Sep 2018 15:10:15 +0000 (16:10 +0100)]
[Minor] Rework allowed types logic
Vsevolod Stakhov [Mon, 17 Sep 2018 14:48:16 +0000 (15:48 +0100)]
[Minor] Change function name to a more appropriate one
Vsevolod Stakhov [Mon, 17 Sep 2018 14:36:41 +0000 (15:36 +0100)]
[Minor] Allow spaces and stars as separators in selectors
Vsevolod Stakhov [Mon, 17 Sep 2018 13:09:56 +0000 (14:09 +0100)]
[Minor] Fix some minor issues
Vsevolod Stakhov [Mon, 17 Sep 2018 12:55:22 +0000 (13:55 +0100)]
[Project] Add implicit conversion logic to selectors
Vsevolod Stakhov [Mon, 17 Sep 2018 12:27:38 +0000 (13:27 +0100)]
[Project] Rework selectors logic
Vsevolod Stakhov [Mon, 17 Sep 2018 10:51:10 +0000 (11:51 +0100)]
[Minor] Fixes to regexp selectors
Alexander Moisseev [Mon, 17 Sep 2018 10:45:18 +0000 (13:45 +0300)]
[Minor] Remove extra parentheses
Vsevolod Stakhov [Mon, 17 Sep 2018 10:22:29 +0000 (11:22 +0100)]
[Minor] Allow to set custom delimiter for regexp selectors
Vsevolod Stakhov [Mon, 17 Sep 2018 09:47:12 +0000 (10:47 +0100)]
[Feature] Cache selectors results in re runtime
Vsevolod Stakhov [Sun, 16 Sep 2018 16:32:33 +0000 (17:32 +0100)]
Merge pull request #2487 from moisseev/eslint
[Minor] JS code style changes
Alexander Moisseev [Sun, 16 Sep 2018 16:31:14 +0000 (19:31 +0300)]
[Minor] Enforce consistent key-value spacing
Alexander Moisseev [Sun, 16 Sep 2018 13:58:34 +0000 (16:58 +0300)]
[Feature] Relax FORGED_RECIPIENTS
allow alias expansion and forwarding (Postfix)
Vsevolod Stakhov [Sun, 16 Sep 2018 10:45:04 +0000 (11:45 +0100)]
[Minor] Fix selectors invocation
Vsevolod Stakhov [Sun, 16 Sep 2018 09:00:55 +0000 (10:00 +0100)]
[Minor] Add implicit header type for regexps
Vsevolod Stakhov [Sun, 16 Sep 2018 08:56:42 +0000 (09:56 +0100)]
[Minor] Add more methods to lua selectors