summaryrefslogtreecommitdiffstats
path: root/src/libmime/received.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-04 21:46:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-04 21:46:15 +0100
commit513b6c6ab95cb36b5405de394f24b59f4f2b9a3d (patch)
treedbb195369fa4b5776555217d84b0474139e22aec /src/libmime/received.h
parenta3752855c6c378da51b73a1e854b439eb472cc56 (diff)
downloadrspamd-513b6c6ab95cb36b5405de394f24b59f4f2b9a3d.tar.gz
rspamd-513b6c6ab95cb36b5405de394f24b59f4f2b9a3d.zip
[Project] Start using of the new received structure
Diffstat (limited to 'src/libmime/received.h')
-rw-r--r--src/libmime/received.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libmime/received.h b/src/libmime/received.h
index bc3c31e0d..845bf4357 100644
--- a/src/libmime/received.h
+++ b/src/libmime/received.h
@@ -24,6 +24,9 @@
#ifdef __cplusplus
extern "C" {
#endif
+/*
+ * C bindings for C++ received code
+ */
enum rspamd_received_type {
RSPAMD_RECEIVED_SMTP = 1u << 0u,
@@ -58,9 +61,25 @@ struct rspamd_email_address;
struct rspamd_received_header_chain;
struct rspamd_mime_header;
+/**
+ * Parse received header from an input header data
+ * @param task
+ * @param data
+ * @param sz
+ * @param hdr
+ * @return
+ */
bool rspamd_received_header_parse(struct rspamd_task *task,
const char *data, size_t sz, struct rspamd_mime_header *hdr);
+
+/**
+ * Process task data and the most top received and fix either part if needed
+ * @param task
+ * @return
+ */
+bool rspamd_received_maybe_fix_task(struct rspamd_task *task);
+
#ifdef __cplusplus
}
#endif