aduernberger
20f6d7103e
[Fix] Always set the unlearn flag when relearning
Treat relearning from ham to spam the same as relearning from spam to ham. `res` is only set to true if the mail is already learned.
1 month ago
Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
2 months ago
Vsevolod Stakhov
6b2b416718
[Rework] Remove some of the GLib types in lieu of standard ones
This types have constant conflicts with the system ones especially on OSX.
2 months ago
Vsevolod Stakhov
5570daed2d
[Minor] Cleanup
4 months ago
Vsevolod Stakhov
c2fd943dc8
[Project] Final things on redis cache rework
4 months ago
Vsevolod Stakhov
7b9dd286ea
[Minor] Fix scripts invocation
4 months ago
Vsevolod Stakhov
5d861d8dd1
[Project] Further rework of the C part
4 months ago
Vsevolod Stakhov
7541d281d3
[Project] Initial implementation of the lua counterpart
4 months ago
Vsevolod Stakhov
dea397a3b1
[Rework] Start rewriting of the redis cache logic
4 months ago
laodc
ee05b36e77
changed errors to warnings.
nullptr on contructor was never meant to be there
9 months ago
laodc
75fdc829ba
Added support for Redis 6 ACL (username/password)
9 months ago
Vsevolod Stakhov
ef58324535
[Rework] More steps to do refactoring
9 months ago
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
10 months ago
Josh Soref
2b8e6958f4
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
2 years ago
Vsevolod Stakhov
bc488cd48b
[Minor] Remove obsolete WITH_HIREDIS define
2 years ago
Vsevolod Stakhov
2ea40ec56a
[Minor] Improve logging for REDIS_REPLY_ERROR
3 years ago
Vsevolod Stakhov
c2351037b5
[Feature] Support multiple base32 alphabets
4 years ago
Vsevolod Stakhov
716642909e
[Minor] Zero terminate id string
4 years ago
Vsevolod Stakhov
a7108fde8f
[Minor] Oops, remove g_free dtor
4 years ago
Vsevolod Stakhov
35179d94a8
[Minor] Allocate variable in the pool and avoid malloc
4 years ago
resec
901e31e977
Revert "[Fix] #3129 Multiple classifiers on redis working incorrectly"
This reverts commit 14495547de
.
4 years ago
Vsevolod Stakhov
684996ee80
[Minor] Add failure reason in the upstreams code
4 years ago
resec
14495547de
[Fix] #3129 Multiple classifiers on redis working incorrectly
4 years ago
Vsevolod Stakhov
0d916d0c7a
[Minor] Do not crash if redis cache cannot be reached
4 years ago
Vsevolod Stakhov
ff1f29cc72
[Fix] Important hiredis fixes
Hiredis can return error in two ways:
- ctx is NULL and this path is usually handled properly
- ctx->err is not REDIS_OK and this path is totally missing in many places
This change should fix the both cases.
4 years ago
Vsevolod Stakhov
5f1ac2f30b
[Project] Adopt libstat code
4 years ago
Vsevolod Stakhov
c271eb3665
[Rework] Add C++ guards to all headers
4 years ago
Vsevolod Stakhov
0334b8e433
[Project] Further rework
5 years ago
Vsevolod Stakhov
98897c1797
[Project] First refactoring step libevent->libev
5 years ago
Vsevolod Stakhov
0f32df6f44
[Fix] Core: Fix address rotation bug
Previously, upstream.get_addr function returned the new address of the
upstream. Unfortunately, it was used for printing addresses. It caused
the following situation: let's imagine we have A1 and A2 where A1 was
initially selected. So the connection was performed to A1:
Current addr Selected addr
Connect+---------+ A2+------>A1 A1
|
+-+Print failure<---+ A1+------>A2 A2
| +----+
+->Mark failure+-------->+ A2 |
+----+
But the failure OP as well as log message told about `A2` where the real
problem happened with `A1`.
This commit adds distinguishing between getting the next and the current
address of the upstream resolving this issue.
5 years ago
Vsevolod Stakhov
ccbc89bc15
[Minor] Do not use item in classifiers as it causes issues
Issue: #2636
5 years ago
Vsevolod Stakhov
43a821c91c
[Project] Migrate fuzzy redis backend to lua_redis
5 years ago
Vsevolod Stakhov
ddcdc5c183
[Project] Use lua_redis for redis_cache as well
5 years ago
Vsevolod Stakhov
84b57c53f4
[Minor] Allow to have bulk learn in the default config
5 years ago
Vsevolod Stakhov
4929e73f2b
[Project] Another rework for symbols cache
5 years ago
Vsevolod Stakhov
0c20729f33
[Rework] Add more traces to async events, get rid of GQuarks
5 years ago
Vsevolod Stakhov
f76b158223
[Project] Adopt C modules and stuff
5 years ago
Vsevolod Stakhov
915a460b6a
[Minor] Fix event pending checks
5 years ago
Vsevolod Stakhov
c05c2b3b82
[Fix] Fix more issues with watching of async events
5 years ago
Vsevolod Stakhov
d45ec6978f
[Fix] Fix crashes on task cleanup
5 years ago
Vsevolod Stakhov
1af89c3566
[Fix] Add fail-safety for destroying sessions
5 years ago
Vsevolod Stakhov
1812d38cb8
[Feature] Distinguish IP failures from connection failures
6 years ago
Vsevolod Stakhov
e9c35582e7
[Minor] Allow to parse integer database names for Redis
Issue: #2083
Closes: #2083
6 years ago
Vsevolod Stakhov
4beb2f2970
[Minor] Final stage of g_slice removal
6 years ago
Vsevolod Stakhov
e737e9942c
[Rework] Set token data as uint64_t instead of chars array
7 years ago
Vsevolod Stakhov
3a98d054f5
[Minor] Add support for unix connections for redis stats backend
7 years ago
Vsevolod Stakhov
203de2ba03
[Fix] Fix autolearning errors and redis cache
7 years ago
Vsevolod Stakhov
d61a9525f0
[Feature] Read redis backend statistics configuration from global section
Issue: #766
7 years ago
Vsevolod Stakhov
18b2d65f76
[Fix] Fix timeouts in redis cache processing
8 years ago
Vsevolod Stakhov
c15fd65bc3
[Feature] Allow versioning for sqlite databases
8 years ago