diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-14 16:41:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-14 16:41:44 +0100 |
commit | a838cf4f8141baaab3b23877a41435a80f7804b3 (patch) | |
tree | f29b679d5539e399493fdb48d6cbc165904cf93e /src/libmime/message.h | |
parent | 7e6126e0169e6397d1e9e989433f590398d20fd8 (diff) | |
download | rspamd-a838cf4f8141baaab3b23877a41435a80f7804b3.tar.gz rspamd-a838cf4f8141baaab3b23877a41435a80f7804b3.zip |
[Feature] Use new ragel parser in message parsing code
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r-- | src/libmime/message.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h index 3994bd102..026233f3c 100644 --- a/src/libmime/message.h +++ b/src/libmime/message.h @@ -7,6 +7,8 @@ #define RSPAMD_MESSAGE_H #include "config.h" +#include "email_addr.h" +#include "addr.h" #include <gmime/gmime.h> struct rspamd_task; @@ -54,12 +56,23 @@ struct mime_text_part { guint64 hash; }; +enum rspamd_received_type { + RSPAMD_RECEIVED_SMTP = 0, + RSPAMD_RECEIVED_ESMTP, + RSPAMD_RECEIVED_ESMTPS, + RSPAMD_RECEIVED_LMTP, + RSPAMD_RECEIVED_IMAP, + RSPAMD_RECEIVED_UNKNOWN +}; + struct received_header { gchar *from_hostname; gchar *from_ip; gchar *real_hostname; gchar *real_ip; gchar *by_hostname; + rspamd_inet_addr_t *addr; + enum rspamd_received_type type; gint is_error; }; |