]> source.dussan.org Git - rspamd.git/log
rspamd.git
2 years agoMerge pull request #4248 from fiirhok/patch-1
Vsevolod Stakhov [Wed, 24 Aug 2022 18:51:31 +0000 (19:51 +0100)]
Merge pull request #4248 from fiirhok/patch-1

[Minor] Remove references to Atom in CONTRIBUTING.md

2 years agoUpdate caplitalization of Rspamd in CONTRIBUTING.md 4248/head
fiirhok [Wed, 24 Aug 2022 18:29:02 +0000 (11:29 -0700)]
Update caplitalization of Rspamd in CONTRIBUTING.md

2 years ago[Minor] Remove references to Atom in CONTRIBUTING.md
fiirhok [Wed, 24 Aug 2022 17:20:18 +0000 (10:20 -0700)]
[Minor] Remove references to Atom in CONTRIBUTING.md

2 years ago[Fix] Another try to fix add headers compatibility logic
Vsevolod Stakhov [Tue, 23 Aug 2022 22:53:26 +0000 (23:53 +0100)]
[Fix] Another try to fix add headers compatibility logic

Issue: #4246

2 years ago[Fix] Fix iteration over milter headers
Vsevolod Stakhov [Tue, 23 Aug 2022 21:26:40 +0000 (22:26 +0100)]
[Fix] Fix iteration over milter headers

Issue: #4246

2 years ago[Minor] Exclude irrelevant parts from mime_headers regexp
Vsevolod Stakhov [Mon, 22 Aug 2022 21:35:13 +0000 (22:35 +0100)]
[Minor] Exclude irrelevant parts from mime_headers regexp

2 years ago[Minor] Add timeout augmentation to fuzzy_check plugin
Vsevolod Stakhov [Sun, 21 Aug 2022 19:26:09 +0000 (20:26 +0100)]
[Minor] Add timeout augmentation to fuzzy_check plugin

2 years ago[Minor] Add a helper method to get the current DNS timeout
Vsevolod Stakhov [Sat, 20 Aug 2022 20:52:14 +0000 (21:52 +0100)]
[Minor] Add a helper method to get the current DNS timeout

2 years agoMerge pull request #4244 from Player701/FixBadRepPolicies
Vsevolod Stakhov [Sat, 20 Aug 2022 16:15:47 +0000 (17:15 +0100)]
Merge pull request #4244 from Player701/FixBadRepPolicies

Fix: BAD_REP_POLICIES does not trigger for Bayes

2 years ago[Minor] Add utility function for task timeouts
Vsevolod Stakhov [Fri, 19 Aug 2022 20:13:03 +0000 (21:13 +0100)]
[Minor] Add utility function for task timeouts

2 years ago[Fix] BAD_REP_POLICIES did not trigger when message was classified as spam by Bayes 4244/head
Player701 [Fri, 19 Aug 2022 16:47:46 +0000 (19:47 +0300)]
[Fix] BAD_REP_POLICIES did not trigger when message was classified as spam by Bayes

2 years ago[Minor] Implement C API to obtain timeouts information
Vsevolod Stakhov [Fri, 19 Aug 2022 16:47:07 +0000 (17:47 +0100)]
[Minor] Implement C API to obtain timeouts information

2 years ago[Minor] Save all items that causes timeouts
Vsevolod Stakhov [Fri, 19 Aug 2022 16:10:35 +0000 (17:10 +0100)]
[Minor] Save all items that causes timeouts

2 years ago[Minor] Add some more logging
Vsevolod Stakhov [Thu, 18 Aug 2022 20:18:04 +0000 (21:18 +0100)]
[Minor] Add some more logging

2 years ago[Minor] Add function to find out the maximum timeout for all symbols
Vsevolod Stakhov [Wed, 17 Aug 2022 20:30:54 +0000 (21:30 +0100)]
[Minor] Add function to find out the maximum timeout for all symbols

2 years ago[Minor] Add timeout augmentation
Vsevolod Stakhov [Wed, 17 Aug 2022 19:35:39 +0000 (20:35 +0100)]
[Minor] Add timeout augmentation

2 years ago[Minor] Fix issues introduced by migration
Vsevolod Stakhov [Wed, 17 Aug 2022 17:48:18 +0000 (18:48 +0100)]
[Minor] Fix issues introduced by migration

2 years ago[Rework] Use khash instead of uthash in rdns compression logic
Vsevolod Stakhov [Wed, 17 Aug 2022 17:00:47 +0000 (18:00 +0100)]
[Rework] Use khash instead of uthash in rdns compression logic

2 years agoMerge pull request #4242 from rekup/fix/dmarc-report-noopt
Vsevolod Stakhov [Tue, 16 Aug 2022 13:51:47 +0000 (14:51 +0100)]
Merge pull request #4242 from rekup/fix/dmarc-report-noopt

[Fix] Skip sending dmarc reports in no-opt mode

2 years ago[Fix] Skip sending dmarc reports in no-opt mode 4242/head
Reto Kupferschmid [Tue, 16 Aug 2022 07:39:02 +0000 (09:39 +0200)]
[Fix] Skip sending dmarc reports in no-opt mode
fixes https://github.com/rspamd/rspamd/issues/4241

2 years ago[Minor] Use a more unified approach to hash strings
Vsevolod Stakhov [Mon, 15 Aug 2022 22:10:36 +0000 (23:10 +0100)]
[Minor] Use a more unified approach to hash strings

2 years ago[Project] Allow `=` separated augmentations to be treated as kv pairs
Vsevolod Stakhov [Sun, 14 Aug 2022 22:55:40 +0000 (23:55 +0100)]
[Project] Allow `=` separated augmentations to be treated as kv pairs

2 years ago[Project] Allow to extract augmentation values
Vsevolod Stakhov [Sat, 13 Aug 2022 19:16:36 +0000 (20:16 +0100)]
[Project] Allow to extract augmentation values

2 years ago[Minor] Handle null values
Vsevolod Stakhov [Fri, 12 Aug 2022 20:52:28 +0000 (21:52 +0100)]
[Minor] Handle null values

2 years ago[Project] Support augmentations with values
Vsevolod Stakhov [Fri, 12 Aug 2022 19:44:35 +0000 (20:44 +0100)]
[Project] Support augmentations with values

2 years ago[Minor] Add support of CNAME requests to the lua resolver
Vsevolod Stakhov [Thu, 11 Aug 2022 20:36:50 +0000 (21:36 +0100)]
[Minor] Add support of CNAME requests to the lua resolver

2 years ago[Minor] Remove duplicated code
Vsevolod Stakhov [Thu, 11 Aug 2022 20:36:38 +0000 (21:36 +0100)]
[Minor] Remove duplicated code

2 years ago[Minor] Ignore irrelevant DNS replies
Vsevolod Stakhov [Thu, 11 Aug 2022 20:36:13 +0000 (21:36 +0100)]
[Minor] Ignore irrelevant DNS replies

2 years ago[Minor] Improve logging
Vsevolod Stakhov [Thu, 11 Aug 2022 20:12:49 +0000 (21:12 +0100)]
[Minor] Improve logging

2 years ago[Minor] Ignore unlink failures when dealing with the caching logic
Vsevolod Stakhov [Wed, 10 Aug 2022 22:44:14 +0000 (23:44 +0100)]
[Minor] Ignore unlink failures when dealing with the caching logic

Issue: #4238

2 years ago[Minor] Add experimental support of CNAME RR type
Vsevolod Stakhov [Wed, 10 Aug 2022 22:35:28 +0000 (23:35 +0100)]
[Minor] Add experimental support of CNAME RR type

2 years ago[Minor] Remove word 'dela' from stop words as it is used in many languages
Vsevolod Stakhov [Tue, 9 Aug 2022 21:08:04 +0000 (22:08 +0100)]
[Minor] Remove word 'dela' from stop words as it is used in many languages

2 years agoMerge pull request #4239 from citrin/mime-types
Vsevolod Stakhov [Tue, 9 Aug 2022 20:06:47 +0000 (21:06 +0100)]
Merge pull request #4239 from citrin/mime-types

Add MIME types commonly used for mp3 and wav attachments

2 years ago[Minor] Add MIME types commonly used for mp3 and wav attachments 4239/head
Anton Yuzhaninov [Tue, 9 Aug 2022 11:00:49 +0000 (12:00 +0100)]
[Minor] Add MIME types commonly used for mp3 and wav attachments

2 years ago[Minor] Hide complex function
Vsevolod Stakhov [Mon, 8 Aug 2022 20:43:08 +0000 (21:43 +0100)]
[Minor] Hide complex function

2 years ago[Minor] Oops, forgot to save a file: fix compilation error
Vsevolod Stakhov [Sun, 7 Aug 2022 22:13:37 +0000 (23:13 +0100)]
[Minor] Oops, forgot to save a file: fix compilation error

2 years ago[Minor] One more effort to select a proper item to change
Vsevolod Stakhov [Sun, 7 Aug 2022 19:30:14 +0000 (20:30 +0100)]
[Minor] One more effort to select a proper item to change

2 years ago[Minor] Set current item when processing composites
Vsevolod Stakhov [Sun, 7 Aug 2022 17:25:53 +0000 (18:25 +0100)]
[Minor] Set current item when processing composites

2 years ago[Minor] Try to fix stats for the virtual symbols
Vsevolod Stakhov [Sat, 6 Aug 2022 22:47:35 +0000 (23:47 +0100)]
[Minor] Try to fix stats for the virtual symbols

2 years ago[Minor] Do not increase frequency in symcache for duplicate results
Vsevolod Stakhov [Fri, 5 Aug 2022 22:09:15 +0000 (23:09 +0100)]
[Minor] Do not increase frequency in symcache for duplicate results

2 years ago[Minor] Asn: Improve log message
Vsevolod Stakhov [Thu, 4 Aug 2022 22:23:58 +0000 (23:23 +0100)]
[Minor] Asn: Improve log message

Issue: #4235

2 years ago[Fix] Try to avoid a corner case for `@` pattern
Vsevolod Stakhov [Thu, 4 Aug 2022 20:50:12 +0000 (21:50 +0100)]
[Fix] Try to avoid a corner case for `@` pattern

Issue: #4217

2 years ago[Minor] Use integer instead of number
Vsevolod Stakhov [Wed, 3 Aug 2022 20:51:55 +0000 (21:51 +0100)]
[Minor] Use integer instead of number

2 years ago[Minor] Consider subject when checking hash function input length
Vsevolod Stakhov [Tue, 2 Aug 2022 20:17:20 +0000 (21:17 +0100)]
[Minor] Consider subject when checking hash function input length

2 years ago[Fix] Adjust length of the fuzzy checks for short text parts
Vsevolod Stakhov [Tue, 2 Aug 2022 20:12:38 +0000 (21:12 +0100)]
[Fix] Adjust length of the fuzzy checks for short text parts

Reported by: @citrin

2 years agoMerge pull request #4233 from fatalbanana/turkish
Vsevolod Stakhov [Tue, 2 Aug 2022 20:05:03 +0000 (21:05 +0100)]
Merge pull request #4233 from fatalbanana/turkish

[Minor] Set `diacritics` flag for more languages

2 years ago[Minor] Set `diacritics` flag for Turkish & Italian languages 4233/head
Andrew Lewis [Tue, 2 Aug 2022 11:17:22 +0000 (13:17 +0200)]
[Minor] Set `diacritics` flag for Turkish & Italian languages

 - Reported by: @citrin

2 years ago[Minor] Bail on unknown augmentations
Vsevolod Stakhov [Sun, 31 Jul 2022 19:03:46 +0000 (20:03 +0100)]
[Minor] Bail on unknown augmentations

2 years ago[Minor] Restrict `m` patterns in regexps
Vsevolod Stakhov [Sat, 30 Jul 2022 19:52:08 +0000 (20:52 +0100)]
[Minor] Restrict `m` patterns in regexps

Issue: #4221

2 years ago[Minor] Glob patterns actually allow ranges
Vsevolod Stakhov [Sat, 30 Jul 2022 19:43:23 +0000 (20:43 +0100)]
[Minor] Glob patterns actually allow ranges

2 years ago[Minor] Another try to fix build on old systems
Vsevolod Stakhov [Thu, 28 Jul 2022 12:12:53 +0000 (13:12 +0100)]
[Minor] Another try to fix build on old systems

2 years ago[Minor] Build hack for old ubuntu/debian
Vsevolod Stakhov [Thu, 28 Jul 2022 10:51:29 +0000 (11:51 +0100)]
[Minor] Build hack for old ubuntu/debian

2 years ago[Minor] Reduce log level
Vsevolod Stakhov [Wed, 27 Jul 2022 20:59:12 +0000 (21:59 +0100)]
[Minor] Reduce log level

2 years ago[Minor] Explicitly resolve parent as it could not be resolved initially
Vsevolod Stakhov [Wed, 27 Jul 2022 20:53:26 +0000 (21:53 +0100)]
[Minor] Explicitly resolve parent as it could not be resolved initially

2 years ago[Fix] Try to fix passthrough results processing logic
Vsevolod Stakhov [Tue, 26 Jul 2022 22:44:20 +0000 (23:44 +0100)]
[Fix] Try to fix passthrough results processing logic

2 years ago[Fix] Try to fix the mess with read only flag
Vsevolod Stakhov [Mon, 25 Jul 2022 21:18:32 +0000 (22:18 +0100)]
[Fix] Try to fix the mess with read only flag

Issue: #4219

2 years agoMerge pull request #4222 from JasonStephenson/mimedump_improvements
Vsevolod Stakhov [Mon, 25 Jul 2022 16:15:49 +0000 (17:15 +0100)]
Merge pull request #4222 from JasonStephenson/mimedump_improvements

[Minor] Mimedump improvements

2 years agowhitespace.. 4222/head
Jason Stephenson [Mon, 25 Jul 2022 08:35:27 +0000 (09:35 +0100)]
whitespace..

2 years agoget_dump_content to return content directly without converting userdata to string...
Jason Stephenson [Mon, 25 Jul 2022 08:26:48 +0000 (09:26 +0100)]
get_dump_content to return content directly without converting userdata to string. write_dump_content to convert string to userdata (rspamd_text) and use save_in_file.

2 years ago[Minor] Restore Lua API
Vsevolod Stakhov [Sun, 24 Jul 2022 19:37:15 +0000 (20:37 +0100)]
[Minor] Restore Lua API

2 years ago[Minor] Add static C API
Vsevolod Stakhov [Sun, 24 Jul 2022 19:26:53 +0000 (20:26 +0100)]
[Minor] Add static C API

2 years agofix whitespace
Jason Stephenson [Sun, 24 Jul 2022 18:47:32 +0000 (19:47 +0100)]
fix whitespace

2 years agoChange comment to asserts. String type check before tostring call
Jason Stephenson [Sun, 24 Jul 2022 18:28:11 +0000 (19:28 +0100)]
Change comment to asserts. String type check before tostring call

2 years ago[Fix] Fix stack smashing
Vsevolod Stakhov [Sat, 23 Jul 2022 19:35:50 +0000 (20:35 +0100)]
[Fix] Fix stack smashing

2 years agoFix silly mistake
Jason Stephenson [Fri, 22 Jul 2022 13:35:24 +0000 (14:35 +0100)]
Fix silly mistake

2 years agoluacheck fixes
Jason Stephenson [Fri, 22 Jul 2022 13:29:08 +0000 (14:29 +0100)]
luacheck fixes

2 years agoAdd support for --split
Jason Stephenson [Fri, 22 Jul 2022 10:08:30 +0000 (11:08 +0100)]
Add support for --split

2 years ago[Minor] Update svector to 1.0.2
Vsevolod Stakhov [Thu, 21 Jul 2022 21:22:57 +0000 (22:22 +0100)]
[Minor] Update svector to 1.0.2

2 years ago[Minor] Some more missing flags
Vsevolod Stakhov [Thu, 21 Jul 2022 20:04:20 +0000 (21:04 +0100)]
[Minor] Some more missing flags

2 years ago[Fix] Add missing flags
Vsevolod Stakhov [Thu, 21 Jul 2022 19:54:54 +0000 (20:54 +0100)]
[Fix] Add missing flags

2 years agoRefactor before adding support to extract option
Jason Stephenson [Thu, 21 Jul 2022 11:20:42 +0000 (12:20 +0100)]
Refactor before adding support to extract option

2 years agoImplement writing to directory
Jason Stephenson [Thu, 21 Jul 2022 10:57:57 +0000 (11:57 +0100)]
Implement writing to directory

2 years ago[Minor] Return 401 error code on `Unauthorized` error
Vsevolod Stakhov [Wed, 20 Jul 2022 20:46:51 +0000 (21:46 +0100)]
[Minor] Return 401 error code on `Unauthorized` error

Issue: #4218

2 years ago[Minor] Address svector destructor issue
Vsevolod Stakhov [Tue, 19 Jul 2022 19:18:40 +0000 (20:18 +0100)]
[Minor] Address svector destructor issue

2 years ago[Minor] Check version header that is absent sometimes
Vsevolod Stakhov [Mon, 18 Jul 2022 16:43:31 +0000 (17:43 +0100)]
[Minor] Check version header that is absent sometimes

2 years ago[Minor] Add is_avalanching type hint
Vsevolod Stakhov [Mon, 18 Jul 2022 16:38:52 +0000 (17:38 +0100)]
[Minor] Add is_avalanching type hint

2 years ago[Minor] Add a workaround for old clang
Vsevolod Stakhov [Mon, 18 Jul 2022 16:32:16 +0000 (17:32 +0100)]
[Minor] Add a workaround for old clang

2 years ago[Minor] Remove noexcept qualifier as it interferes with ankerl::unordered_dense
Vsevolod Stakhov [Mon, 18 Jul 2022 08:28:47 +0000 (09:28 +0100)]
[Minor] Remove noexcept qualifier as it interferes with ankerl::unordered_dense

2 years ago[Minor] Fix hash usage after rework to address pointer stability issue
Vsevolod Stakhov [Mon, 18 Jul 2022 08:19:26 +0000 (09:19 +0100)]
[Minor] Fix hash usage after rework to address pointer stability issue

2 years ago[Rework] Use hash map for id->symbol mappings
Vsevolod Stakhov [Sun, 17 Jul 2022 19:13:59 +0000 (20:13 +0100)]
[Rework] Use hash map for id->symbol mappings

2 years ago[Minor] Simplify id_list by using of the small vector
Vsevolod Stakhov [Sun, 17 Jul 2022 17:16:05 +0000 (18:16 +0100)]
[Minor] Simplify id_list by using of the small vector

2 years ago[Minor] Follow-up for static disabling of the symbols
Vsevolod Stakhov [Sun, 17 Jul 2022 16:57:55 +0000 (17:57 +0100)]
[Minor] Follow-up for static disabling of the symbols

2 years ago[Feature] Add ability to statically maintain disabled/enabled patterns
Vsevolod Stakhov [Sun, 17 Jul 2022 15:58:03 +0000 (16:58 +0100)]
[Feature] Add ability to statically maintain disabled/enabled patterns

2 years ago[Rework] Use another version of hash table from the same author
Vsevolod Stakhov [Sun, 17 Jul 2022 15:43:47 +0000 (16:43 +0100)]
[Rework] Use another version of hash table from the same author

2 years ago[Test] Check the decoded length when doing base32 fuzz test
Vsevolod Stakhov [Sat, 16 Jul 2022 22:50:13 +0000 (23:50 +0100)]
[Test] Check the decoded length when doing base32 fuzz test

2 years agoMerge pull request #4216 from JasonStephenson/fix_empty_objects_are_arrays
Vsevolod Stakhov [Fri, 15 Jul 2022 21:28:20 +0000 (22:28 +0100)]
Merge pull request #4216 from JasonStephenson/fix_empty_objects_are_arrays

[Fix] Empty envelopes should not be emitted as arrays, drop from schema instead

2 years ago[Minor] Try to fix unpadded base32 decoding
Vsevolod Stakhov [Fri, 15 Jul 2022 21:26:54 +0000 (22:26 +0100)]
[Minor] Try to fix unpadded base32 decoding

2 years agoFix missing require statement for ucl.null 4216/head
Jason Stephenson [Fri, 15 Jul 2022 20:58:23 +0000 (21:58 +0100)]
Fix missing require statement for ucl.null

2 years agoExplicitly emit null instead of dropping from output
Jason Stephenson [Fri, 15 Jul 2022 20:49:46 +0000 (21:49 +0100)]
Explicitly emit null instead of dropping from output

2 years ago[Fix] Empty envelopes should not be emitted as arrays (json+messagepack) when populat...
Jason Stephenson [Fri, 15 Jul 2022 15:10:45 +0000 (16:10 +0100)]
[Fix] Empty envelopes should not be emitted as arrays (json+messagepack) when populated envelopes are objects. This greatly complicates decoding in strictly typed languages.

2 years agoMerge pull request #4214 from fatalbanana/rspamc_messages
Vsevolod Stakhov [Fri, 15 Jul 2022 11:47:31 +0000 (12:47 +0100)]
Merge pull request #4214 from fatalbanana/rspamc_messages

[Minor] rspamc: fix crash on non-string element in `messages`

2 years ago[Minor] rspamc: fix crash on non-string element in `messages` 4214/head
Andrew Lewis [Fri, 15 Jul 2022 11:26:10 +0000 (13:26 +0200)]
[Minor] rspamc: fix crash on non-string element in `messages`

2 years ago[Fix] Fix reading of the cached maps
Vsevolod Stakhov [Sun, 10 Jul 2022 09:42:55 +0000 (10:42 +0100)]
[Fix] Fix reading of the cached maps

Issue: #4213

2 years ago[Minor] Fix format string
Vsevolod Stakhov [Sat, 9 Jul 2022 19:54:35 +0000 (20:54 +0100)]
[Minor] Fix format string

2 years ago[Test] Add unit test for keepalive timeout parsing
Vsevolod Stakhov [Sat, 9 Jul 2022 19:45:19 +0000 (20:45 +0100)]
[Test] Add unit test for keepalive timeout parsing

2 years ago[Fix] Fix several issues with the HTTP keepalive parsing
Vsevolod Stakhov [Sat, 9 Jul 2022 19:44:57 +0000 (20:44 +0100)]
[Fix] Fix several issues with the HTTP keepalive parsing

2 years ago[Minor] Fix several issues in the parsing of the timeout in Keep-Alive header
Vsevolod Stakhov [Sat, 9 Jul 2022 19:39:33 +0000 (20:39 +0100)]
[Minor] Fix several issues in the parsing of the timeout in Keep-Alive header

2 years ago[Minor] Eh, one more fix for the format string
Vsevolod Stakhov [Sat, 9 Jul 2022 19:24:14 +0000 (20:24 +0100)]
[Minor] Eh, one more fix for the format string

Noticed by: @citrin

2 years ago[Fix] Remove check for a score with no symbol being registered
Vsevolod Stakhov [Fri, 8 Jul 2022 21:08:32 +0000 (22:08 +0100)]
[Fix] Remove check for a score with no symbol being registered

This check is redundant and has proven to confuse users who want to disable some rules.
Indeed, if we are looking for a way to hint a user that the registered symbol `example`
does not match with the scored symbol `exmaple` (e.g. incorrect spelling), then this
error will be detected when we match symcache entries and the scores. The opposite check
is useless to prevent such an error. And since it is much harder to define a dangling score
with no real symbol, we can just ignore this possibility in general, since the FP for this check,
specifically when some rule got intentionally disabled but a score is not removed just annoys
users for no good reason.

2 years ago[Minor] Some more fixes towards hyperscan obsoletion reasoning
Vsevolod Stakhov [Fri, 8 Jul 2022 20:55:04 +0000 (21:55 +0100)]
[Minor] Some more fixes towards hyperscan obsoletion reasoning