summaryrefslogtreecommitdiff
path: root/decoders/mail/mail_decoder_smtp.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/mail/mail_decoder_smtp.h')
-rw-r--r--decoders/mail/mail_decoder_smtp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/decoders/mail/mail_decoder_smtp.h b/decoders/mail/mail_decoder_smtp.h
index 7d3b18f..5099dc4 100644
--- a/decoders/mail/mail_decoder_smtp.h
+++ b/decoders/mail/mail_decoder_smtp.h
@@ -55,13 +55,16 @@ typedef enum SMTP_CMD_STATE
struct smtp_parser {
struct mail_command *current_command;
+
+ int command_topic_id;
+ struct mq_runtime *mq;
+
struct email_parser *eml_parser;
- struct mail_decoder *mail_env_ref;
};
int smtp_identify(const char *payload, size_t payload_len, int is_c2s);
int smtp_parser_entry(struct smtp_parser *parser, struct session *sess, const char *payload, size_t payload_len, int is_c2s);
void smtp_parser_free(struct smtp_parser *parser);
-struct smtp_parser * smtp_parser_new(struct mail_decoder *env, int is_c2s);
+struct smtp_parser * smtp_parser_new(struct mq_runtime *mq, struct mail_topics *topics, int is_c2s);
#endif