]> source.dussan.org Git - rspamd.git/log
rspamd.git
6 years agoIndent shell command for readability 2596/head
Anton Yuzhaninov [Tue, 16 Oct 2018 19:14:50 +0000 (15:14 -0400)]
Indent shell command for readability

6 years agoImprove comment
Anton Yuzhaninov [Tue, 16 Oct 2018 18:53:21 +0000 (14:53 -0400)]
Improve comment

6 years agoSet limit to allow core dump writing
Anton Yuzhaninov [Tue, 16 Oct 2018 16:42:16 +0000 (12:42 -0400)]
Set limit to allow core dump writing

6 years agoRun gdb if rspamd-test dumped core
Anton Yuzhaninov [Tue, 16 Oct 2018 16:19:25 +0000 (12:19 -0400)]
Run gdb if rspamd-test dumped core

6 years ago[Minor] Fix test build with lua >= 5.3
Vsevolod Stakhov [Tue, 16 Oct 2018 14:04:31 +0000 (15:04 +0100)]
[Minor] Fix test build with lua >= 5.3

6 years ago[Minor] Fix build
Vsevolod Stakhov [Tue, 16 Oct 2018 13:23:39 +0000 (14:23 +0100)]
[Minor] Fix build

6 years ago[Minor] Improve crash logging
Vsevolod Stakhov [Tue, 16 Oct 2018 11:45:27 +0000 (12:45 +0100)]
[Minor] Improve crash logging

6 years agoMerge pull request #2595 from citrin/coveralls
Vsevolod Stakhov [Tue, 16 Oct 2018 11:33:23 +0000 (12:33 +0100)]
Merge pull request #2595 from citrin/coveralls

Add git repo info to coveralls payload

6 years ago[Fix] Fix various issues with parsing of the received headers
Vsevolod Stakhov [Tue, 16 Oct 2018 11:29:01 +0000 (12:29 +0100)]
[Fix] Fix various issues with parsing of the received headers

6 years ago[Minor] Add log_usec option to the default config as an example
Vsevolod Stakhov [Tue, 16 Oct 2018 11:28:42 +0000 (12:28 +0100)]
[Minor] Add log_usec option to the default config as an example

6 years ago[Minor] Try to use a faster timer if available
Vsevolod Stakhov [Tue, 16 Oct 2018 11:28:13 +0000 (12:28 +0100)]
[Minor] Try to use a faster timer if available

6 years ago[Minor] Another log invocation fixed
Vsevolod Stakhov [Tue, 16 Oct 2018 08:10:26 +0000 (09:10 +0100)]
[Minor] Another log invocation fixed

6 years ago[Minor] Fix logger invocation
Vsevolod Stakhov [Tue, 16 Oct 2018 08:09:40 +0000 (09:09 +0100)]
[Minor] Fix logger invocation

6 years agoAdd git repo info to coveralls payload 2595/head
Anton Yuzhaninov [Tue, 16 Oct 2018 01:01:58 +0000 (21:01 -0400)]
Add git repo info to coveralls payload

Again other implementations were used as reference, because API is not
fully documented.

6 years ago[Conf] Extend BAD_POLICIES composite
Vsevolod Stakhov [Mon, 15 Oct 2018 17:08:03 +0000 (18:08 +0100)]
[Conf] Extend BAD_POLICIES composite

6 years ago[Minor] Some fixes towards epsilon comparison
Vsevolod Stakhov [Mon, 15 Oct 2018 17:05:46 +0000 (18:05 +0100)]
[Minor] Some fixes towards epsilon comparison

6 years ago[Minor] Prevent use-after-free
Vsevolod Stakhov [Mon, 15 Oct 2018 16:13:51 +0000 (17:13 +0100)]
[Minor] Prevent use-after-free

6 years ago[Fix] Fix errors when dealing with dynamic rates/bursts in Ratelimit
Vsevolod Stakhov [Mon, 15 Oct 2018 15:23:30 +0000 (16:23 +0100)]
[Fix] Fix errors when dealing with dynamic rates/bursts in Ratelimit

6 years ago[Minor] Fix function invocation
Vsevolod Stakhov [Mon, 15 Oct 2018 15:23:18 +0000 (16:23 +0100)]
[Minor] Fix function invocation

6 years ago[Minor] Fix error when using plain unix socket in DCC plugin
Vsevolod Stakhov [Mon, 15 Oct 2018 15:23:00 +0000 (16:23 +0100)]
[Minor] Fix error when using plain unix socket in DCC plugin

6 years ago[Feature] Use verdict instead of the plain action in plugins
Vsevolod Stakhov [Mon, 15 Oct 2018 14:56:38 +0000 (15:56 +0100)]
[Feature] Use verdict instead of the plain action in plugins

6 years ago[Minor] Add function lua_util.get_task_verdict
Vsevolod Stakhov [Mon, 15 Oct 2018 14:50:01 +0000 (15:50 +0100)]
[Minor] Add function lua_util.get_task_verdict

6 years ago[Minor] Add task:get_metric_result() method
Vsevolod Stakhov [Mon, 15 Oct 2018 14:22:47 +0000 (15:22 +0100)]
[Minor] Add task:get_metric_result() method

6 years ago[Minor] Store more information about symbols added
Vsevolod Stakhov [Mon, 15 Oct 2018 14:22:33 +0000 (15:22 +0100)]
[Minor] Store more information about symbols added

6 years agoMerge pull request #2590 from heraklit256/onion-uri-2
Vsevolod Stakhov [Sun, 14 Oct 2018 14:24:23 +0000 (15:24 +0100)]
Merge pull request #2590 from heraklit256/onion-uri-2

add rule for .onion URIs

6 years agoDrone coverage fix (#2592)
Anton Yuzhaninov [Sun, 14 Oct 2018 08:38:57 +0000 (04:38 -0400)]
Drone coverage fix (#2592)

* Build as nobody

This showld fix coverage files writing. At least some coverage files
(*.gcda, *.gcno) are written by rspamd running as nobody.

* Comment luacov-coveralls

* Run rspamd-test as nobody too

* Run coveralls from build root (/rspamd/build)

It need to find all `.gcda` files.

* Hack for coveralls was moved to Docker image

* Add test debug

* More debug

* Workaround to writing *.gcda from different users

*.gcda files written in parallel by root and by nobody

* Remove debug

* Use current build number instead of previous

* Remove unused variable

* Add more parameters

- If CI detected we don't need to check if service_job_id and other
fields in json already filled - this info anyway comes from environment

- coveralls.io API is not documented. Code from:
https://github.com/lemurheavy/coveralls-ruby/
and
https://github.com/coveralls-clients/coveralls-python/
was used as an example.

* In case of error there is no url in json respnse

Print message field anyway - it can contain useful error message.

* Add debug

* Simplify

* Fix: for pull request CI_BUILD_EVENT set to 'pull_request'

* Remove debug

6 years agoMerge pull request #2593 from moisseev/eslint
Vsevolod Stakhov [Sun, 14 Oct 2018 08:38:42 +0000 (09:38 +0100)]
Merge pull request #2593 from moisseev/eslint

[WebUI] Colorize symbols

6 years ago[Minor] Remove unused CSS rule-sets 2593/head
Alexander Moisseev [Sun, 14 Oct 2018 07:52:09 +0000 (10:52 +0300)]
[Minor] Remove unused CSS rule-sets

6 years agoadd HAS_ONION_URI to HAS_ANON_DOMAIN 2590/head
heraklit256 [Sat, 13 Oct 2018 18:47:23 +0000 (20:47 +0200)]
add HAS_ONION_URI to HAS_ANON_DOMAIN

6 years agoadd HAS_ONION_URI rule
heraklit256 [Sat, 13 Oct 2018 18:46:56 +0000 (20:46 +0200)]
add HAS_ONION_URI rule

6 years agoMerge pull request #7 from rspamd/master
heraklit256 [Sat, 13 Oct 2018 18:43:34 +0000 (18:43 +0000)]
Merge pull request #7 from rspamd/master

merge upstream into local master

6 years ago[WebUI] Colorize symbols
Alexander Moisseev [Sat, 13 Oct 2018 17:46:53 +0000 (20:46 +0300)]
[WebUI] Colorize symbols

6 years ago[Minor] Python...
Vsevolod Stakhov [Sat, 13 Oct 2018 14:35:59 +0000 (15:35 +0100)]
[Minor] Python...

6 years ago[Minor] Python...
Vsevolod Stakhov [Sat, 13 Oct 2018 14:24:34 +0000 (15:24 +0100)]
[Minor] Python...

6 years ago[Minor] Fucking python
Vsevolod Stakhov [Sat, 13 Oct 2018 13:59:48 +0000 (14:59 +0100)]
[Minor] Fucking python

6 years ago[Feature] Add only unique elements to Clickhouse url arrays
Vsevolod Stakhov [Sat, 13 Oct 2018 13:57:56 +0000 (14:57 +0100)]
[Feature] Add only unique elements to Clickhouse url arrays

6 years ago[Minor] Another try to fix bloody python
Vsevolod Stakhov [Sat, 13 Oct 2018 13:48:01 +0000 (14:48 +0100)]
[Minor] Another try to fix bloody python

6 years ago[Minor] Set number of threads on load as precaution
Vsevolod Stakhov [Sat, 13 Oct 2018 13:41:09 +0000 (14:41 +0100)]
[Minor] Set number of threads on load as precaution

6 years ago[Minor] Always set number of threads when performing learn
Vsevolod Stakhov [Sat, 13 Oct 2018 13:40:19 +0000 (14:40 +0100)]
[Minor] Always set number of threads when performing learn

6 years ago[Minor] Further try to fix bloody python
Vsevolod Stakhov [Sat, 13 Oct 2018 13:33:28 +0000 (14:33 +0100)]
[Minor] Further try to fix bloody python

6 years ago[Minor] Allow to edit empty maps
Vsevolod Stakhov [Sat, 13 Oct 2018 13:23:00 +0000 (14:23 +0100)]
[Minor] Allow to edit empty maps

6 years ago[Minor] Use python3
Vsevolod Stakhov [Sat, 13 Oct 2018 13:19:14 +0000 (14:19 +0100)]
[Minor] Use python3

6 years ago[Minor] Include module name when setting pre result
Vsevolod Stakhov [Sat, 13 Oct 2018 12:30:07 +0000 (13:30 +0100)]
[Minor] Include module name when setting pre result

6 years agoUpdate README.md
Vsevolod Stakhov [Sat, 13 Oct 2018 12:26:51 +0000 (13:26 +0100)]
Update README.md

6 years agoDrone speedup (#2588)
Anton Yuzhaninov [Sat, 13 Oct 2018 10:16:34 +0000 (06:16 -0400)]
Drone speedup (#2588)

* Start switchind test to custom Docker images

Using Docker images with pre-installed delendencies will speedup
testing.

* Debug build in drone.io

* Use variable instead hardcoded path to the source

* Debug variable substitution by drone

Also according to comments in code DRONE_WORKSPACE is deprecated and
CI_WORKSPACE is a new form.

* One more try to use variables.

It looks like drone uses same rules as docker-compose:
https://docs.docker.com/compose/compose-file/#variable-substitution

* Cleanup debug

* Less verbose make output

* Be consistent in variable escaping

It works without escaping only becuse ${VAR} currently expanded by
drone, but $VAR is not.

* Use alpine base image for nodejs

It is smaller.

* Return rspamd-test

* Revert variable escaping

Wihtout escaping it is more easy to copy-past command for testing.
Just don't use ${var} when var should be expanded by shell and not
drone.

* Add debug

* Fix yaml parsing error

* Fix exit code capture

It should be done on the same line, because drone insert 'echo + cmd'
between commands.

* Remove debug

* Readability

No functional changes.

* Return functional tests

* Be consistent

* Add git stub for coveralls

* Send coverage

* Fix yaml parsing error

* Add links to Dockerfiles

* Send test log in case of test failure

XXX if rspamd-test failed, but functional was successful robot log will be
attached (but not useful).

* Don't run rspamd-test and functional tests in parallel

It looks like there is a race condition in writing coverage files.

* Try to run tests in parallel

* Add debug

* Fix parallel test run

test/rspamd-test and functional test both use luacov.stats.out file
in current directory. Run ./rspamd-test from anther directory.

* Use drone condition for sending coveralls report

Also don't send report if empty tocken was provided.

* Add mininal python3 compatibility

6 years ago[Minor] Improve errors logging
Vsevolod Stakhov [Fri, 12 Oct 2018 16:57:08 +0000 (17:57 +0100)]
[Minor] Improve errors logging

6 years ago[Minor] Do not call legacy API in modern OpenSSL
Vsevolod Stakhov [Fri, 12 Oct 2018 16:43:49 +0000 (17:43 +0100)]
[Minor] Do not call legacy API in modern OpenSSL

Issue: #2587
Closes: #2587
6 years agoMerge pull request #2586 from moisseev/eslint
Vsevolod Stakhov [Fri, 12 Oct 2018 16:40:34 +0000 (17:40 +0100)]
Merge pull request #2586 from moisseev/eslint

[WebUI] Add symbols sorting buttons

6 years ago[Test] Fix tests that are not RFC conformant
Vsevolod Stakhov [Fri, 12 Oct 2018 16:33:20 +0000 (17:33 +0100)]
[Test] Fix tests that are not RFC conformant

6 years ago[Minor] Fix some tests
Vsevolod Stakhov [Fri, 12 Oct 2018 16:09:10 +0000 (17:09 +0100)]
[Minor] Fix some tests

6 years ago[Rework] Completely rewrite DMARC checks logic
Vsevolod Stakhov [Fri, 12 Oct 2018 15:44:21 +0000 (16:44 +0100)]
[Rework] Completely rewrite DMARC checks logic

6 years ago[Minor] Remove stupid debugging
Vsevolod Stakhov [Fri, 12 Oct 2018 15:44:01 +0000 (16:44 +0100)]
[Minor] Remove stupid debugging

6 years ago[CritFix] Fix options insertion
Vsevolod Stakhov [Fri, 12 Oct 2018 08:48:58 +0000 (09:48 +0100)]
[CritFix] Fix options insertion

6 years ago[WebUI] Add symbols sorting buttons 2586/head
Alexander Moisseev [Mon, 8 Oct 2018 11:25:50 +0000 (14:25 +0300)]
[WebUI] Add symbols sorting buttons

to detail history rows

6 years ago[Minor] Add some fail-safety
Vsevolod Stakhov [Thu, 11 Oct 2018 19:48:50 +0000 (20:48 +0100)]
[Minor] Add some fail-safety

6 years ago[Minor] Fix stack index
Vsevolod Stakhov [Thu, 11 Oct 2018 17:41:18 +0000 (18:41 +0100)]
[Minor] Fix stack index

6 years ago[Conf] Log forced action by default
Vsevolod Stakhov [Thu, 11 Oct 2018 16:27:07 +0000 (17:27 +0100)]
[Conf] Log forced action by default

6 years ago[Minor] Add logging variable for forced actions
Vsevolod Stakhov [Thu, 11 Oct 2018 16:26:02 +0000 (17:26 +0100)]
[Minor] Add logging variable for forced actions

6 years ago[Minor] Fix score set in passthrough mode
Vsevolod Stakhov [Thu, 11 Oct 2018 16:19:00 +0000 (17:19 +0100)]
[Minor] Fix score set in passthrough mode

6 years ago[Project] Finish rework of passthrough actions
Vsevolod Stakhov [Thu, 11 Oct 2018 14:35:07 +0000 (15:35 +0100)]
[Project] Finish rework of passthrough actions

6 years ago[Rework] Always create result for a task
Vsevolod Stakhov [Thu, 11 Oct 2018 13:32:11 +0000 (14:32 +0100)]
[Rework] Always create result for a task

6 years ago[Minor] Fix comments with multiple addresses
Vsevolod Stakhov [Wed, 10 Oct 2018 10:26:19 +0000 (11:26 +0100)]
[Minor] Fix comments with multiple addresses

Issue: #2578
Closes: #2578
6 years ago[Feature] Allow to disable actions by users settings
Vsevolod Stakhov [Tue, 9 Oct 2018 17:30:35 +0000 (18:30 +0100)]
[Feature] Allow to disable actions by users settings

6 years agoMerge pull request #2581 from negram/drone-ci
Vsevolod Stakhov [Tue, 9 Oct 2018 16:19:04 +0000 (17:19 +0100)]
Merge pull request #2581 from negram/drone-ci

Drone ci

6 years ago[Minor] Adopted merger to work with drone 2581/head
Mikhail Galanin [Tue, 9 Oct 2018 16:17:25 +0000 (17:17 +0100)]
[Minor] Adopted merger to work with drone

6 years ago[Minor] Add .drone.yml
Mikhail Galanin [Tue, 9 Oct 2018 16:17:04 +0000 (17:17 +0100)]
[Minor] Add .drone.yml

6 years ago[Minor] Fixes for the previous project
Vsevolod Stakhov [Tue, 9 Oct 2018 13:58:44 +0000 (14:58 +0100)]
[Minor] Fixes for the previous project

6 years ago[Conf] Add composite to negate policies when fuzzy/bayes found
Vsevolod Stakhov [Tue, 9 Oct 2018 11:37:30 +0000 (12:37 +0100)]
[Conf] Add composite to negate policies when fuzzy/bayes found

6 years ago[Feature] Allow `g+:` and `g-:` composite atoms
Vsevolod Stakhov [Tue, 9 Oct 2018 11:37:02 +0000 (12:37 +0100)]
[Feature] Allow `g+:` and `g-:` composite atoms

6 years ago[Minor] Add more operations sanity check in expressions parser
Vsevolod Stakhov [Tue, 9 Oct 2018 11:36:23 +0000 (12:36 +0100)]
[Minor] Add more operations sanity check in expressions parser

6 years ago[Conf] Increase default bayes score
Vsevolod Stakhov [Tue, 9 Oct 2018 11:11:10 +0000 (12:11 +0100)]
[Conf] Increase default bayes score

6 years ago[Feature] Store url object in images
Vsevolod Stakhov [Tue, 9 Oct 2018 11:07:28 +0000 (12:07 +0100)]
[Feature] Store url object in images

6 years ago[Conf] Add dkim checks for some surbl rules
Vsevolod Stakhov [Tue, 9 Oct 2018 10:59:30 +0000 (11:59 +0100)]
[Conf] Add dkim checks for some surbl rules

6 years ago[Feature] Allow dkim domains check in surbl
Vsevolod Stakhov [Tue, 9 Oct 2018 10:59:17 +0000 (11:59 +0100)]
[Feature] Allow dkim domains check in surbl

6 years agoMerge pull request #2579 from negram/fixed-unit-test
Vsevolod Stakhov [Tue, 9 Oct 2018 10:24:11 +0000 (11:24 +0100)]
Merge pull request #2579 from negram/fixed-unit-test

[Test] fixed unit test

6 years ago[Test] fixed unit test 2579/head
Mikhail Galanin [Tue, 9 Oct 2018 08:24:49 +0000 (09:24 +0100)]
[Test] fixed unit test

6 years agoMerge pull request #2577 from negram/fix-edge-case
Vsevolod Stakhov [Mon, 8 Oct 2018 17:07:41 +0000 (18:07 +0100)]
Merge pull request #2577 from negram/fix-edge-case

Fix edge case

6 years agoMerge pull request #2576 from negram/more-coverage
Vsevolod Stakhov [Mon, 8 Oct 2018 17:07:25 +0000 (18:07 +0100)]
Merge pull request #2576 from negram/more-coverage

[Test] Collect coverage in all functional tests

6 years agoMerge pull request #2575 from negram/coverage-doc
Vsevolod Stakhov [Mon, 8 Oct 2018 17:07:16 +0000 (18:07 +0100)]
Merge pull request #2575 from negram/coverage-doc

[Minor] Added coverage collection documentation

6 years ago[Test] one more test case 2577/head
Mikhail Galanin [Mon, 8 Oct 2018 16:53:50 +0000 (17:53 +0100)]
[Test] one more test case

6 years ago[Minor] Fix checking table size when inserting/deleting
Mikhail Galanin [Mon, 8 Oct 2018 16:53:33 +0000 (17:53 +0100)]
[Minor] Fix checking table size when inserting/deleting

6 years ago[Minor] Add missing #endif
Vsevolod Stakhov [Mon, 8 Oct 2018 16:34:24 +0000 (17:34 +0100)]
[Minor] Add missing #endif

6 years ago[Minor] Update cached libevent time when possible
Vsevolod Stakhov [Mon, 8 Oct 2018 16:29:51 +0000 (17:29 +0100)]
[Minor] Update cached libevent time when possible

6 years ago[Fix] Stop libevent from using cached time in rspamadm
Vsevolod Stakhov [Mon, 8 Oct 2018 16:15:19 +0000 (17:15 +0100)]
[Fix] Stop libevent from using cached time in rspamadm

6 years ago[Minor] Check for cached libevent time routines
Vsevolod Stakhov [Mon, 8 Oct 2018 16:08:38 +0000 (17:08 +0100)]
[Minor] Check for cached libevent time routines

6 years ago[Test] Collect coverage in all functional tests 2576/head
Mikhail Galanin [Mon, 8 Oct 2018 15:28:55 +0000 (16:28 +0100)]
[Test] Collect coverage in all functional tests

6 years agoMerge pull request #2543 from heraklit256/extended-dnswl-scores
Vsevolod Stakhov [Mon, 8 Oct 2018 15:22:43 +0000 (16:22 +0100)]
Merge pull request #2543 from heraklit256/extended-dnswl-scores

leaving original symbols if DNSWL composite rules are triggered

6 years agolower weight of RCVD_DKIM_ARC_DNSWL_HI to -1.0 2543/head
heraklit256 [Mon, 8 Oct 2018 15:03:03 +0000 (17:03 +0200)]
lower weight of RCVD_DKIM_ARC_DNSWL_HI to -1.0

6 years ago[Minor] Added coverage collection documentation 2575/head
Mikhail Galanin [Mon, 8 Oct 2018 14:52:22 +0000 (15:52 +0100)]
[Minor] Added coverage collection documentation

6 years ago[Minor] Print timestamps when rspamadm is started in debug mode
Vsevolod Stakhov [Mon, 8 Oct 2018 11:21:31 +0000 (12:21 +0100)]
[Minor] Print timestamps when rspamadm is started in debug mode

6 years ago[Fix] Various fixes in redis sync interface
Vsevolod Stakhov [Mon, 8 Oct 2018 10:51:09 +0000 (11:51 +0100)]
[Fix] Various fixes in redis sync interface

6 years ago[CritFix] Plug memory leak in redis pool
Vsevolod Stakhov [Mon, 8 Oct 2018 10:50:53 +0000 (11:50 +0100)]
[CritFix] Plug memory leak in redis pool

6 years agoMerge pull request #2574 from negram/store-and-merge-lua-coverage
Vsevolod Stakhov [Mon, 8 Oct 2018 09:41:12 +0000 (10:41 +0100)]
Merge pull request #2574 from negram/store-and-merge-lua-coverage

Store and merge lua coverage

6 years ago[Test] Reworked build script to correctly collect merge coverage data 2574/head
Mikhail Galanin [Mon, 8 Oct 2018 08:00:25 +0000 (09:00 +0100)]
[Test] Reworked build script to correctly collect merge coverage data

6 years ago[Test] Coverage merge/push script
Mikhail Galanin [Mon, 8 Oct 2018 07:59:23 +0000 (08:59 +0100)]
[Test] Coverage merge/push script

6 years ago[Test] Collect coverage from rspamd workers
Mikhail Galanin [Mon, 8 Oct 2018 07:58:50 +0000 (08:58 +0100)]
[Test] Collect coverage from rspamd workers

6 years agoMerge pull request #2573 from moisseev/eslint
Vsevolod Stakhov [Sun, 7 Oct 2018 18:53:12 +0000 (19:53 +0100)]
Merge pull request #2573 from moisseev/eslint

[WebUI] Fix symbol description tooltips display

6 years ago[WebUI] Fix symbol description tooltips display 2573/head
Alexander Moisseev [Sun, 7 Oct 2018 07:51:08 +0000 (10:51 +0300)]
[WebUI] Fix symbol description tooltips display

when the total number of rows is less than number of rows per page

6 years ago[Minor] Fix desctruction order
Vsevolod Stakhov [Sat, 6 Oct 2018 16:15:24 +0000 (17:15 +0100)]
[Minor] Fix desctruction order

6 years ago[Fix] Fix parsing address with comments
Vsevolod Stakhov [Sat, 6 Oct 2018 16:13:12 +0000 (17:13 +0100)]
[Fix] Fix parsing address with comments