]>
source.dussan.org Git - rspamd.git/log
Vsevolod Stakhov [Thu, 27 Aug 2020 14:46:51 +0000 (15:46 +0100)]
[Project] Neural: Implement PCA learning
Vsevolod Stakhov [Thu, 27 Aug 2020 14:40:22 +0000 (15:40 +0100)]
[Project] Neural: Implement PCA serialisation
Vsevolod Stakhov [Thu, 27 Aug 2020 14:35:42 +0000 (15:35 +0100)]
[Project] Neural: Add PCA loading logic
Vsevolod Stakhov [Thu, 27 Aug 2020 14:06:02 +0000 (15:06 +0100)]
[Project] Neural: Start PCA implementation
Vsevolod Stakhov [Wed, 26 Aug 2020 15:11:33 +0000 (16:11 +0100)]
[Minor] Lua_tensor: Add has_blas method
Vsevolod Stakhov [Wed, 26 Aug 2020 09:30:18 +0000 (10:30 +0100)]
[Minor] Eugen -> eigen
Vsevolod Stakhov [Tue, 25 Aug 2020 14:41:46 +0000 (15:41 +0100)]
[Minor] Lua_tensor: Fix newindex row assignment
Vsevolod Stakhov [Tue, 25 Aug 2020 14:14:58 +0000 (15:14 +0100)]
[Minor] Lua_tensor: Add transpose and mean methods
Vsevolod Stakhov [Tue, 25 Aug 2020 13:01:23 +0000 (14:01 +0100)]
[Minor] Lua_tensor: Add eugen method
Vsevolod Stakhov [Tue, 25 Aug 2020 12:02:02 +0000 (13:02 +0100)]
[Minor] Lua_tensor: Add __len method
Vsevolod Stakhov [Tue, 25 Aug 2020 10:02:54 +0000 (11:02 +0100)]
Merge pull request #3480 from moisseev/webui
[WebUI] Rework navbar buttons
Vsevolod Stakhov [Mon, 24 Aug 2020 19:51:45 +0000 (20:51 +0100)]
[Fix] Fix types check and types usage in lua_cryptobox
Vsevolod Stakhov [Mon, 24 Aug 2020 16:02:38 +0000 (17:02 +0100)]
[Minor] Fix keyed blake2b creation
Vsevolod Stakhov [Mon, 24 Aug 2020 13:32:11 +0000 (14:32 +0100)]
[Fix] Allow to adjust neurons in the hidden layer
Vsevolod Stakhov [Mon, 24 Aug 2020 12:33:26 +0000 (13:33 +0100)]
[Test] Increase resilence of the NN tests
Vsevolod Stakhov [Mon, 24 Aug 2020 12:22:22 +0000 (13:22 +0100)]
[Minor] Allow empty string lists in config
Vsevolod Stakhov [Mon, 24 Aug 2020 13:13:47 +0000 (14:13 +0100)]
Merge pull request #3478 from cpragadeesh/master
[Fix] Change neural plugin's loss function
moisseev [Sun, 23 Aug 2020 16:07:12 +0000 (19:07 +0300)]
[WebUI] Rework navbar buttons
- Convert navbar buttons to <button> elements
- Do not disable Refresh button when auto-refresh is disabled
- Do not refresh current tab on auto-refresh interval change
Vsevolod Stakhov [Sun, 23 Aug 2020 11:38:13 +0000 (12:38 +0100)]
Merge pull request #3479 from fatalbanana/google_fwd
Fix FWD_GOOGLE rule (#1815)
Vsevolod Stakhov [Sun, 23 Aug 2020 11:37:05 +0000 (12:37 +0100)]
[Minor] Fix copy&paste error
Vsevolod Stakhov [Sun, 23 Aug 2020 10:46:49 +0000 (11:46 +0100)]
[Minor] Improve logging on map retries
Vsevolod Stakhov [Sun, 23 Aug 2020 10:46:32 +0000 (11:46 +0100)]
[Minor] Add hack to reuse rspamd_inet_address_to_string*
Vsevolod Stakhov [Sat, 22 Aug 2020 12:07:44 +0000 (13:07 +0100)]
[Feature] Implement address retry on connection failure
Vsevolod Stakhov [Sat, 22 Aug 2020 11:58:28 +0000 (12:58 +0100)]
[Minor] Always try to check IPv4 address first when checking HTTP maps
Vsevolod Stakhov [Sat, 22 Aug 2020 11:51:06 +0000 (12:51 +0100)]
[Minor] Add ptr array shuffle routine
Andrew Lewis [Sat, 22 Aug 2020 11:24:42 +0000 (13:24 +0200)]
[Fix] Fix FWD_GOOGLE rule (#1815)
Vsevolod Stakhov [Fri, 21 Aug 2020 20:47:59 +0000 (21:47 +0100)]
[Fix] Fix storing of the original smtp from
Vsevolod Stakhov [Fri, 21 Aug 2020 20:36:28 +0000 (21:36 +0100)]
[Minor] Allow to add all parameters into `rcpts` and `from` selectors
Vsevolod Stakhov [Fri, 21 Aug 2020 15:11:32 +0000 (16:11 +0100)]
[Minor] Allow to use lua_tensor in kann apply
Pragadeesh C [Wed, 19 Aug 2020 06:47:49 +0000 (02:47 -0400)]
[Fix] Change neural plugin's loss function
Modified the neural network to use ceb_neg loss function.
Vsevolod Stakhov [Thu, 20 Aug 2020 19:51:23 +0000 (20:51 +0100)]
Merge pull request #3477 from citrin/lua-magic-html
[Minor] Improve lua_magic HTML content type check
Vsevolod Stakhov [Thu, 20 Aug 2020 19:50:59 +0000 (20:50 +0100)]
[Minor] Fix extensions calculations
Vsevolod Stakhov [Thu, 20 Aug 2020 17:17:30 +0000 (18:17 +0100)]
Merge pull request #3476 from citrin/lua-util-str
[Minor] Add Lua functions str_startswith and str_endswith
Anton Yuzhaninov [Wed, 19 Aug 2020 16:39:59 +0000 (17:39 +0100)]
[Minor] Improve lua_magic HTML content type check
Types which are used for html (xhtml) attachments:
text/html
application/html
application/xhtml+xml
Type which cannot be found in the wild:
text/htm
Vsevolod Stakhov [Wed, 19 Aug 2020 17:11:35 +0000 (18:11 +0100)]
[Minor] Fix tensor projections multiplication
Anton Yuzhaninov [Wed, 19 Aug 2020 15:58:31 +0000 (16:58 +0100)]
[Minor] Add Lua functions str_startswith and str_endswith
Vsevolod Stakhov [Wed, 19 Aug 2020 14:46:33 +0000 (15:46 +0100)]
[Minor] Fix fortran mangling on gnu systems
Vsevolod Stakhov [Wed, 19 Aug 2020 14:32:23 +0000 (15:32 +0100)]
[Minor] Link lapack as well
Vsevolod Stakhov [Wed, 19 Aug 2020 12:51:25 +0000 (13:51 +0100)]
[Minor] Lua_tensor: Add __newindex feature
Vsevolod Stakhov [Wed, 19 Aug 2020 12:51:10 +0000 (13:51 +0100)]
[Minor] Fix tensor multiplication for the vectors case
Vsevolod Stakhov [Wed, 19 Aug 2020 11:43:06 +0000 (12:43 +0100)]
[Minor] Lua_tensor: Implement non-owning tensors (slices)
Vsevolod Stakhov [Tue, 18 Aug 2020 18:57:59 +0000 (19:57 +0100)]
Merge pull request #3474 from citrin/clickhouse-attach
Clickhouse attach
Anton Yuzhaninov [Tue, 18 Aug 2020 17:45:30 +0000 (18:45 +0100)]
[Minor] Save into ClickHouse unnamed attaches
Most MUA allow to save attachments (parts with Content-Disposition: attachment)
even if don't have a name. Keep name field empty and save other
information about such attachments to ClickHouse: Content-Type, size,
digest.
Modify attachments selector as well to return hashes of unnamed
attachments.
Anton Yuzhaninov [Tue, 18 Aug 2020 17:41:05 +0000 (18:41 +0100)]
[Minor] Do not use built-in Lua function as variable name
Vsevolod Stakhov [Tue, 18 Aug 2020 15:06:21 +0000 (16:06 +0100)]
[Minor] Add some fail-safety
Vsevolod Stakhov [Tue, 18 Aug 2020 12:27:45 +0000 (13:27 +0100)]
Merge pull request #3472 from citrin/api-doc
[Doc] Improve task:get_message_id() description
Anton Yuzhaninov [Tue, 18 Aug 2020 12:21:27 +0000 (13:21 +0100)]
[Doc] Improve task:get_message_id() description
Vsevolod Stakhov [Tue, 18 Aug 2020 11:22:50 +0000 (12:22 +0100)]
[Minor] Spamassassin: Remove ffi call
Vsevolod Stakhov [Tue, 18 Aug 2020 11:21:46 +0000 (12:21 +0100)]
[Minor] Restore scripts flag
Vsevolod Stakhov [Tue, 18 Aug 2020 10:45:59 +0000 (11:45 +0100)]
[Feature] Split pdf processing object and output object to allow GC
Vsevolod Stakhov [Tue, 18 Aug 2020 10:28:42 +0000 (11:28 +0100)]
[Minor] Dkim/ARC: allow to sign merely for specific settings id
Vsevolod Stakhov [Mon, 17 Aug 2020 13:41:39 +0000 (14:41 +0100)]
[Test] Fix tests
Vsevolod Stakhov [Mon, 17 Aug 2020 12:19:15 +0000 (13:19 +0100)]
[Fix] Store reference of upstream list in upstreams objects
Vsevolod Stakhov [Sat, 15 Aug 2020 13:53:54 +0000 (14:53 +0100)]
[Minor] Add null safety to rspamd_regexp_new
Vsevolod Stakhov [Sat, 15 Aug 2020 13:49:54 +0000 (14:49 +0100)]
[Minor] Lua_text: Add __lt metamethod
Vsevolod Stakhov [Fri, 14 Aug 2020 17:13:27 +0000 (18:13 +0100)]
Merge pull request #3471 from moisseev/webui
[WebUI] Use /auth to get data missing in /stat
moisseev [Fri, 14 Aug 2020 10:43:02 +0000 (13:43 +0300)]
[WebUI] Use /auth to get data missing in /stat
response on legacy servers.
Namely "config_id", "version" and "uptime".
moisseev [Fri, 14 Aug 2020 07:56:13 +0000 (10:56 +0300)]
[WebUI] Fix alert status reset
Vsevolod Stakhov [Thu, 13 Aug 2020 19:30:16 +0000 (20:30 +0100)]
Merge pull request #3461 from korgoth1/master
[TEST] PHISH Senders
moisseev [Thu, 13 Aug 2020 17:35:39 +0000 (20:35 +0300)]
[Minor] Convert only finite numbers
Vsevolod Stakhov [Wed, 12 Aug 2020 18:05:29 +0000 (19:05 +0100)]
[Minor] Improve error message when learning with passthrough result
Issue: #3339
Vsevolod Stakhov [Tue, 11 Aug 2020 19:14:35 +0000 (20:14 +0100)]
Merge pull request #3469 from citrin/fuzzy-check
[Minor] Fix off-by-one error in log message
Anton Yuzhaninov [Tue, 11 Aug 2020 14:04:07 +0000 (15:04 +0100)]
[Minor] Fix off-by-one error in log message
Vsevolod Stakhov [Mon, 10 Aug 2020 19:25:14 +0000 (20:25 +0100)]
Merge pull request #3468 from citrin/bounce
[Feature] Add BOUNCE rule
Anton Yuzhaninov [Mon, 10 Aug 2020 15:04:10 +0000 (16:04 +0100)]
[Feature] Add BOUNCE rule
Vsevolod Stakhov [Sun, 9 Aug 2020 18:26:36 +0000 (19:26 +0100)]
Merge pull request #3466 from moisseev/webui
[WebUI] Add uptime and version to servers table
moisseev [Sun, 9 Aug 2020 14:50:13 +0000 (17:50 +0300)]
[WebUI] Highlight uptime of restarted servers
moisseev [Sun, 9 Aug 2020 11:32:10 +0000 (14:32 +0300)]
[WebUI] Add fuzzy hashes info
moisseev [Sat, 8 Aug 2020 17:59:27 +0000 (20:59 +0300)]
[WebUI] Add Bayesian statistics info
moisseev [Sat, 8 Aug 2020 15:24:30 +0000 (18:24 +0300)]
[Minor] Refactor displayStatWidgets function
Vsevolod Stakhov [Sat, 8 Aug 2020 14:39:12 +0000 (15:39 +0100)]
Merge pull request #3464 from citrin/maillist
MAILLIST rule fixes
moisseev [Sat, 8 Aug 2020 13:04:27 +0000 (16:04 +0300)]
[Minor] Avoid double quotes escaping
moisseev [Sat, 8 Aug 2020 12:59:17 +0000 (15:59 +0300)]
[WebUI] Add uptime and version to servers table
Anton Yuzhaninov [Sat, 8 Aug 2020 12:26:57 +0000 (13:26 +0100)]
[Minor] Improve debug logs in check_generic_list_headers
And small style improvements.
Anton Yuzhaninov [Sat, 8 Aug 2020 12:12:15 +0000 (13:12 +0100)]
[Minor] Improve mailman mailing list detection
Anton Yuzhaninov [Sat, 8 Aug 2020 09:27:42 +0000 (10:27 +0100)]
[Minor] Update headers used by subscribe.ru
Notably Precedence header no longer used and web links use https.
While here improve style.
Vsevolod Stakhov [Fri, 7 Aug 2020 19:27:28 +0000 (20:27 +0100)]
Merge pull request #3463 from moisseev/webui
[WebUI] Add "rewrite subject" to Status tab widgets
moisseev [Fri, 7 Aug 2020 17:41:03 +0000 (20:41 +0300)]
[WebUI] Remove actions capitalization
moisseev [Fri, 7 Aug 2020 17:17:01 +0000 (20:17 +0300)]
[WebUI] Add "rewrite subject" to Status tab widgets
Vsevolod Stakhov [Fri, 7 Aug 2020 17:12:53 +0000 (18:12 +0100)]
Merge pull request #3462 from moisseev/webui
[WebUI] Use /stat path to get stat
moisseev [Fri, 7 Aug 2020 17:03:13 +0000 (20:03 +0300)]
[WebUI] Use actions names as labels
moisseev [Fri, 7 Aug 2020 16:08:31 +0000 (19:08 +0300)]
[WebUI] Use /stat path to get stat
instead of /auth path
korgoth1 [Thu, 6 Aug 2020 14:50:41 +0000 (17:50 +0300)]
[TEST] PHISH Senders
korgoth1 [Thu, 6 Aug 2020 14:05:10 +0000 (17:05 +0300)]
[TEST] PHISH Senders
korgoth1 [Thu, 6 Aug 2020 14:01:26 +0000 (17:01 +0300)]
[TEST] PHISH Senders
Vsevolod Stakhov [Thu, 6 Aug 2020 13:43:18 +0000 (14:43 +0100)]
[Minor] Lua_tensor: Add deserialisation
Vsevolod Stakhov [Thu, 6 Aug 2020 13:18:47 +0000 (14:18 +0100)]
[Minor] Lua_tensor: Implement serialisation
Vsevolod Stakhov [Thu, 6 Aug 2020 11:06:00 +0000 (12:06 +0100)]
[Minor] Lua_content: Use hex representation of fuzzy hashes
Vsevolod Stakhov [Thu, 6 Aug 2020 11:05:43 +0000 (12:05 +0100)]
[Fix] Fix lua_next invocation
Vsevolod Stakhov [Wed, 5 Aug 2020 20:06:08 +0000 (21:06 +0100)]
Merge pull request #3460 from moisseev/webui
[Minor] Extend /stat response
Vsevolod Stakhov [Wed, 5 Aug 2020 20:04:32 +0000 (21:04 +0100)]
[Project] Add tensors index method
Vsevolod Stakhov [Wed, 5 Aug 2020 20:04:06 +0000 (21:04 +0100)]
[Minor] Allow to have __index in rspamd "classes"
Vsevolod Stakhov [Wed, 5 Aug 2020 15:05:40 +0000 (16:05 +0100)]
[Minor] Add printing and fix multiplication
Vsevolod Stakhov [Wed, 5 Aug 2020 14:36:41 +0000 (15:36 +0100)]
[Project] Add a simple matrix Lua library
moisseev [Wed, 5 Aug 2020 15:04:35 +0000 (18:04 +0300)]
[Minor] Extend /stat response
Vsevolod Stakhov [Wed, 5 Aug 2020 10:17:30 +0000 (11:17 +0100)]
Merge pull request #3458 from moisseev/webui
[Test] Unlock stylelint version
Vsevolod Stakhov [Wed, 5 Aug 2020 10:15:12 +0000 (11:15 +0100)]
Merge pull request #3455 from citrin/clickhouse-retention-fix
Clickhouse retention fix
Vsevolod Stakhov [Wed, 5 Aug 2020 09:16:15 +0000 (10:16 +0100)]
Anton Yuzhaninov [Wed, 29 Jul 2020 15:49:06 +0000 (16:49 +0100)]
[Minor] Use descriptive variable name
PARTITION and PARTITION ID in ClickHouse are different:
https://clickhouse.tech/docs/en/sql-reference/statements/alter/partition/#alter-how-to-specify-part-expr
and we use PARTITION clause here.
Anton Yuzhaninov [Wed, 29 Jul 2020 13:30:23 +0000 (14:30 +0100)]
[Minor] Fix query used to find old partitions
In ClickHouse a partition includes one or more parts. Typically
a partition has at least a few parts. For each part there is a row in
system.parts table and max_date can be different for different parts.
For example if we have following parts:
┌─partition──┬─table──┬───max_date─┐
│ 2020-06-01 │ rspamd │ 2020-06-07 │
│ 2020-06-08 │ rspamd │ 2020-06-10 │
│ 2020-06-08 │ rspamd │ 2020-06-14 │
│ 2020-06-15 │ rspamd │ 2020-06-21 │
└────────────┴────────┴────────────┘
and want to delete parts which don't contain data written
before 2020-06-12.
Old query will return partition which contain a part with
max_date=2020-06-14:
┌─partition──┬─table──┐
│ 2020-06-01 │ rspamd │
│ 2020-06-08 │ rspamd │
└────────────┴────────┘
and new query will return
┌─partition──┬─table──┐
│ 2020-06-01 │ rspamd │
└────────────┴────────┘
While here change <= to < so we will store at least given number of full
months.