aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_headers.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-03 12:52:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-03 12:52:45 +0100
commite040d66c354b135e1281cd438958ecb3e7a8983e (patch)
treede70116cca0d94668ab9ec9637f3c67fdef9552d /src/libmime/mime_headers.h
parent028bda7293b7ed3c908b0a35db9d48e4e411cfb5 (diff)
downloadrspamd-e040d66c354b135e1281cd438958ecb3e7a8983e.tar.gz
rspamd-e040d66c354b135e1281cd438958ecb3e7a8983e.zip
[Project] Rework received headers parsing to C++
Diffstat (limited to 'src/libmime/mime_headers.h')
-rw-r--r--src/libmime/mime_headers.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/libmime/mime_headers.h b/src/libmime/mime_headers.h
index f24b0d6c6..07a64c31e 100644
--- a/src/libmime/mime_headers.h
+++ b/src/libmime/mime_headers.h
@@ -72,52 +72,6 @@ struct rspamd_mime_header {
struct rspamd_mime_headers_table;
-enum rspamd_received_type {
- RSPAMD_RECEIVED_SMTP = 1u << 0u,
- RSPAMD_RECEIVED_ESMTP = 1u << 1u,
- RSPAMD_RECEIVED_ESMTPA = 1u << 2u,
- RSPAMD_RECEIVED_ESMTPS = 1u << 3u,
- RSPAMD_RECEIVED_ESMTPSA = 1u << 4u,
- RSPAMD_RECEIVED_LMTP = 1u << 5u,
- RSPAMD_RECEIVED_IMAP = 1u << 6u,
- RSPAMD_RECEIVED_LOCAL = 1u << 7u,
- RSPAMD_RECEIVED_HTTP = 1u << 8u,
- RSPAMD_RECEIVED_MAPI = 1u << 9u,
- RSPAMD_RECEIVED_UNKNOWN = 1u << 10u,
- RSPAMD_RECEIVED_FLAG_ARTIFICIAL = (1u << 11u),
- RSPAMD_RECEIVED_FLAG_SSL = (1u << 12u),
- RSPAMD_RECEIVED_FLAG_AUTHENTICATED = (1u << 13u),
-};
-
-#define RSPAMD_RECEIVED_FLAG_TYPE_MASK (RSPAMD_RECEIVED_SMTP| \
- RSPAMD_RECEIVED_ESMTP| \
- RSPAMD_RECEIVED_ESMTPA| \
- RSPAMD_RECEIVED_ESMTPS| \
- RSPAMD_RECEIVED_ESMTPSA| \
- RSPAMD_RECEIVED_LMTP| \
- RSPAMD_RECEIVED_IMAP| \
- RSPAMD_RECEIVED_LOCAL| \
- RSPAMD_RECEIVED_HTTP| \
- RSPAMD_RECEIVED_MAPI| \
- RSPAMD_RECEIVED_UNKNOWN)
-
-struct rspamd_email_address;
-
-struct rspamd_received_header {
- const gchar *from_hostname;
- const gchar *from_ip;
- const gchar *real_hostname;
- const gchar *real_ip;
- const gchar *by_hostname;
- const gchar *for_mbox;
- struct rspamd_email_address *for_addr;
- rspamd_inet_addr_t *addr;
- struct rspamd_mime_header *hdr;
- time_t timestamp;
- gint flags; /* See enum rspamd_received_type */
- struct rspamd_received_header *prev, *next;
-};
-
/**
* Process headers and store them in `target`
* @param task