diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-24 13:10:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-24 13:10:58 +0100 |
commit | 4b001cae83b179b2c3360e3d0cea8e3f5c6e577d (patch) | |
tree | 021d0d0424826d2c9735bc3d1e60f50478a1293b /src/libstat/backends | |
parent | 301eb5c533cdffb010f46c04e0ec6e94103518bd (diff) | |
download | rspamd-4b001cae83b179b2c3360e3d0cea8e3f5c6e577d.tar.gz rspamd-4b001cae83b179b2c3360e3d0cea8e3f5c6e577d.zip |
[Fix] Remove parsing of 'from' variable in redis backend
Diffstat (limited to 'src/libstat/backends')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index 9b71b1a17..4f65a673c 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -180,14 +180,6 @@ rspamd_redis_expand_object (const gchar *pattern, tlen ++; state = just_char; break; - case 'f': - if (task) { - elt = rspamd_task_get_sender (task); - if (elt) { - tlen += strlen (elt); - } - } - break; case 'u': elt = GET_TASK_ELT (task, user); if (elt) { @@ -272,14 +264,6 @@ rspamd_redis_expand_object (const gchar *pattern, *d++ = *p; state = just_char; break; - case 'f': - if (task) { - elt = rspamd_task_get_sender (task); - if (elt) { - d += rspamd_strlcpy (d, elt, end - d); - } - } - break; case 'u': elt = GET_TASK_ELT (task, user); if (elt) { |