Vsevolod Stakhov
5fe80e02c8
[Minor] Add lua_util.shuffle
2 years ago
foron
ad132fa10e
Escape redis+selector
I believe it would be better to have the "redis+selector" pattern escaped as "redis%+selector". This would make it easier for string.find to match the documented map string.
2 years ago
Vsevolod Stakhov
e2bc6faca6
[Minor] Do not leak memory
2 years ago
Vsevolod Stakhov
d4871e22d6
[Minor] Create a standard io loop in rspamadm
2 years ago
Vsevolod Stakhov
4e02182eae
[Minor] Improve readability
Suggested by: @citrin
2 years ago
Vsevolod Stakhov
e947bbb495
[Minor] One more fix for checking displayed urls
2 years ago
Vsevolod Stakhov
1bfae03109
[Minor] Fix the mess with caseless comparison functions
2 years ago
Vsevolod Stakhov
a3b5ad3d3b
[Feature] Allow to save and show attachment name when inserting AV scan results
2 years ago
Vsevolod Stakhov
0f57c944b0
[Minor] Dmarc_report: fix report domain check for 3rd party domains
2 years ago
Vsevolod Stakhov
00175f9b9b
Merge pull request #3838 from citrin/x-php-eval
[Rules] Micro-optimize X_PHP_EVAL
2 years ago
Anton Yuzhaninov
0248bd6615
[Rules] Micro-optimize X_PHP_EVAL
Remove /i flag from regexp string "eval()'d code" is always in
lower case. While here use long string format for readability.
2 years ago
Vsevolod Stakhov
776d1048a9
[Feature] Dmarc_report: allow sending reports in batches
2 years ago
Vsevolod Stakhov
c4ec1883f7
[Minor] Remove redundant cycle
2 years ago
Vsevolod Stakhov
6c2d6e771a
[Minor] Oops, fix misprint
2 years ago
Vsevolod Stakhov
572071dd6d
[Fix] Fix phishing flag set
2 years ago
Vsevolod Stakhov
15a4743f0f
[Project] Dmarc_report: Add preliminary sending support
2 years ago
Vsevolod Stakhov
e7021995a4
[Project] Dmarc_report: Add message generation logic
2 years ago
Vsevolod Stakhov
7f8c75441c
[Project] Dmarc: Add dmarc report tool (WIP)
2 years ago
Vsevolod Stakhov
65bba487b9
[Minor] Allow to enable specific module debug
2 years ago
Vsevolod Stakhov
3a97fbba27
[Minor] Store raw dmarc elts
2 years ago
Vsevolod Stakhov
742507c784
[Minor] Url_redirector: Fix zset trimming
2 years ago
Vsevolod Stakhov
569635a48c
[Rework] Dmarc: Move check policy function to the common utils
2 years ago
Vsevolod Stakhov
4854ab4df2
[Minor] Lua: Add rspamd_util.strequal_caseless_utf8 routine
2 years ago
Vsevolod Stakhov
79339e5d4f
[Minor] Allow to compare utf8 strings of different length
2 years ago
Vsevolod Stakhov
06ba232b45
[Feature] Add rspamd_utf8_strcmp utility
2 years ago
Vsevolod Stakhov
8e65fac07f
[Rework] Move common and rarely used dmarc code to the library
2 years ago
Vsevolod Stakhov
bb4171299d
[Minor] Refactor module name variable
2 years ago
Vsevolod Stakhov
4266f574ab
[Minor] Support commonly mistaken spf ipv4/ipv6 elements
2 years ago
Vsevolod Stakhov
3dacc25318
[Rework] Dmarc: Rework reports keys structure
2 years ago
Vsevolod Stakhov
e8d715b098
[Minor] Dmarc: Relax grammar to allow elements with no semicolons
2 years ago
Vsevolod Stakhov
50f8ab9d21
[Project] Dmarc: Use zlists for dmarc reports
2 years ago
Vsevolod Stakhov
1dfd85e022
[Minor] Adjust unit test
2 years ago
Vsevolod Stakhov
0250213db3
Revert "[Minor] Implement backslashes replacement while we normalise http paths"
This reverts commit 05d1951b5c
.
2 years ago
Vsevolod Stakhov
05d1951b5c
[Minor] Implement backslashes replacement while we normalise http paths
2 years ago
Vsevolod Stakhov
8b66801d1a
[Minor] Try to deal with urls with backslashes in path
2 years ago
Vsevolod Stakhov
5adc1d8070
Merge pull request #3835 from a16bitsysop/run-test
[Minor] CMakeLists.txt: add LUA_PATH for run-test
2 years ago
Duncan Bellamy
f3bdc035d3
[Minor] CMakeLists.txt: add LUA_PATH for run-test
* fixes #3826
2 years ago
Vsevolod Stakhov
5f89487e36
[Minor] Fix else branch
2 years ago
Vsevolod Stakhov
49e5514eaf
[Minor] More tags output fixes
2 years ago
Vsevolod Stakhov
b369727b44
[Minor] Further fixes to the html tags content methods
2 years ago
Vsevolod Stakhov
47e8abad84
[Minor] Fix content length calculations
2 years ago
Vsevolod Stakhov
0341427d1c
[Minor] Print all parts when printing html structure
2 years ago
Vsevolod Stakhov
b75b02a67b
[Rework] Reorganize dmarc plugin and remove unsupported reporting code
2 years ago
Vsevolod Stakhov
293fe598e4
[Feature] Add lua_maps.fill_config_maps function
2 years ago
Vsevolod Stakhov
27d54da3f6
[Minor] Improve html tags structure display
2 years ago
Vsevolod Stakhov
3206cbd412
[Minor] Fix transparency parsing
2 years ago
Vsevolod Stakhov
7d3e0fc85e
[Minor] Some fixes in content extraction for html tags
2 years ago
Vsevolod Stakhov
b3e4270795
[Minor] Fix check for image urls
2 years ago
Vsevolod Stakhov
cb7d74e84f
Merge pull request #3832 from citrin/asn-plugin-fix
[Fix] ASN: fix _FAIL symbol for when main symbol is disabled
2 years ago
Anton Yuzhaninov
3789d5c1d3
[Fix] ASN: fix _FAIL symbol for when main symbol is disabled
Fix error:
lua_dns_resolver_callback: call to dns callback failed: /usr/share/rspamd/plugins/asn.lua:74: attempt to concatenate field 'symbol' (a boolean value); trace: [1]:{/usr/share/rspamd/plugins/asn.lua:74 - <unknown> [Lua]};
Which happen when the main asn symbol is disabled in asn.conf using
symbol = false;
While here add nostat flag for ASN symbols (we cannot use them as
spam/ham signs).
2 years ago