Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
3 months ago
Vsevolod Stakhov
b606954ac3
[Minor] Use zstd compression by default in the client
No reasons why not to do it, as there are no supported versions without compression support
3 months ago
Vsevolod Stakhov
bc1d4d92f5
[Feature] Use msgpack in the client
3 months ago
Vsevolod Stakhov
6b81b812a7
[Minor] Improve diagnostics
7 months ago
Vsevolod Stakhov
9873ef954f
[Fix] Deal with fmtlib exceptions properly
8 months ago
Vsevolod Stakhov
faaf9f0e48
[Minor] Add fmt::format specialisation
10 months ago
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
10 months ago
Vsevolod Stakhov
1999b5b9ed
[Minor] Fix some `uptime` output artefacts
1 year ago
Amish
05d04ed46c
Set required_score = reject score and minor change to the report
1 year ago
Amish
07b1b57c88
rspamc: optimize indentation condition
1 year ago
Vsevolod Stakhov
c2f01dc0af
[Minor] Use `thresholds` object in rspamc
Closes: #4380
1 year ago
Vsevolod Stakhov
c978a76a0f
[Minor] Some style neats
1 year ago
Vsevolod Stakhov
5aaa3869e1
[Minor] Further adjustments to the word wrapping
1 year ago
Vsevolod Stakhov
be93d9a1a2
[Minor] Do not split on `.`
1 year ago
Vsevolod Stakhov
0128db9e5c
[Minor] Simplify string wrap algorithm
Submitted by: @amishmm
Closes: #4378
1 year ago
Vsevolod Stakhov
aefb2153a8
[Minor] Check the last split when wrapping
Reported by: @amishmm
1 year ago
Vsevolod Stakhov
4043939da9
[Minor] Some more neats to the string wrapping function
1 year ago
Vsevolod Stakhov
6fea5899c6
[Minor] Improve words wrap algorithm
1 year ago
Vsevolod Stakhov
057df47a8d
[Minor] Some style fixes + reformat
1 year ago
Amish
42e1c8d507
rspamc: add action number in first line and improve code
1 year ago
Amish
0df00b6af6
rspamc: add -R option for human readable report
1 year ago
Vsevolod Stakhov
14b52f4498
[Minor] Rename file to a more appropriate name
1 year ago
Vsevolod Stakhov
2927c41aba
[Minor] Commit leftovers
1 year ago
Vsevolod Stakhov
0b848d655f
[Minor] Fix warning
1 year ago
Andrew Lewis
43c8a6d8fe
[Minor] rspamc: fix crash on non-string element in `messages`
1 year ago
Vsevolod Stakhov
508f8da2f6
Revert "[Minor] C++20 is here"
This change is not so useful to break compatibility with Clang 7. Maybe later...
This reverts commit 48ce799a7a
.
2 years ago
Vsevolod Stakhov
4a1c590167
[Minor] Give up about passing constexpr literal
2 years ago
Vsevolod Stakhov
4acf61f050
[Minor] Another try to fix emphasis function
2 years ago
Vsevolod Stakhov
ec774c1f47
[Fix] Use proper format string, sigh...
2 years ago
Vsevolod Stakhov
48ce799a7a
[Minor] C++20 is here
2 years ago
Vsevolod Stakhov
2b746e782c
[Minor] Add consteval for fmt wrapper
2 years ago
Vsevolod Stakhov
a703124937
[Minor] Refrain from using runtime format strings
2 years ago
Vsevolod Stakhov
13e254677b
[Minor] Fix table output
2 years ago
Vsevolod Stakhov
193d9de3f0
[Minor] Use fixed floating point format
2 years ago
Vsevolod Stakhov
48297adf96
[Minor] Simplify array_of using types deduction
2 years ago
Vsevolod Stakhov
04316e7278
[Minor] Some minor improvements
2 years ago
Vsevolod Stakhov
446166742d
[Minor] More colours
2 years ago
Vsevolod Stakhov
8480869c62
[Feature] Allow to sort symbols output
2 years ago
Vsevolod Stakhov
ee3c71b7e6
[Minor] Fix parsing of the headers
2 years ago
Vsevolod Stakhov
aee782c192
[Minor] Fix compile issues
2 years ago
Vsevolod Stakhov
f0fc81c49f
[Minor] Use tty safe colours support
2 years ago
Vsevolod Stakhov
f80438cc46
[Minor] Add some terminal stuff
2 years ago
Vsevolod Stakhov
e4923aaaea
[Rework] Rewrite rspamc in C++
2 years ago
Vsevolod Stakhov
4a5f9c2d91
[Feature] Show average scan time in `rspamc stat` output
2 years ago
Vsevolod Stakhov
8fb3dc2ad5
[Minor] Use raw more intentionally in a client
--raw flag now means raw **input**, and there is a special flag to emit
reply in ucl. Previously, `--raw` and `--ucl` had the same meaning which
was stupid. Now `--raw` is an input flag whilst `--ucl` is an output flag
as intended.
2 years ago
Vsevolod Stakhov
19afb90db2
[Minor] Update invocation
2 years ago
Anton Yuzhaninov
1bb4bec6be
[Minor] Improve readability of recently changed rspamc code
2 years ago
Anton Yuzhaninov
8e8c92c0ca
[Fix] buffer overflow in rspamc counters
If request to /counters returns no symbols then max_len would have
a negative value:
Results for command: counters (0.003 seconds)
=================================================================
==22096==ERROR: AddressSanitizer: negative-size-param: (size=-2147483604)
#0 0x33ff13 in __asan_memset (/usr/bin/rspamc+0x33ff13)
#1 0x383432 in rspamc_counters_output /usr/src/debug/rspamd/src/client/rspamc.c:1064:2
#2 0x388c49 in rspamc_client_cb /usr/src/debug/rspamd/src/client/rspamc.c:1600:6
...
2 years ago
Vsevolod Stakhov
aa4b2c6e0c
[Minor] Fix exit codes usage to POSIX portable EXIT_FAILURE
2 years ago
Duncan Bellamy
ab72e9d492
[Minor] change headers for zstd depending on bundled or system used
follow on patch from #3764
3 years ago