aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/received.h
diff options
context:
space:
mode:
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