aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index ef14e45ff..640d778e6 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -24,6 +24,7 @@
#include "unix-std.h"
#include "protocol_internal.h"
#include "libserver/mempool_vars_internal.h"
+#include "task.h"
#include <math.h>
static GQuark
@@ -260,6 +261,11 @@ rspamd_protocol_handle_headers (struct rspamd_task *task,
task->flags |= RSPAMD_TASK_FLAG_BROKEN_HEADERS;
}
}
+ IF_HEADER (FILENAME_HEADER) {
+ task->msg.fpath = rspamd_mempool_ftokdup (task->task_pool,
+ hv_tok);
+ debug_task ("read filename header, value: %s", task->msg.fpath);
+ }
else {
debug_task ("wrong header: %V", hn);
}