summaryrefslogtreecommitdiff
path: root/decoders/mail/mail_decoder_module.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/mail/mail_decoder_module.h')
-rw-r--r--decoders/mail/mail_decoder_module.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/decoders/mail/mail_decoder_module.h b/decoders/mail/mail_decoder_module.h
index ddd4fa9..4ba5515 100644
--- a/decoders/mail/mail_decoder_module.h
+++ b/decoders/mail/mail_decoder_module.h
@@ -4,11 +4,6 @@
#include "mail_decoder_util.h"
#define MAIL_EXDATA_NAME "MAIL_EXDATA"
-#define MAIL_COMMAND_TOPIC_NAME "MAIL_COMMAND"
-#define MAIL_HEADER_TOPIC_NAME "MAIL_HEADER"
-#define MAIL_BODY_TOPIC_NAME "MAIL_BODY"
-#define MAIL_ATTACHMENT_TOPIC_NAME "MAIL_ATTACHMENT"
-#define MAIL_EML_TOPIC_NAME "MAIL_EML"
#define PORT_SMTP 25
#define PORT_POP3 110
@@ -72,25 +67,21 @@ typedef struct _mail_local_info
struct mail_session_ctx {
enum MAIL_PROTOCOL protocol;
+ int is_droped;
struct smtp_parser *smtp_parser;
- int is_droped;
- struct mail_decoder *mail_env_ref;
struct session *sess_ref;
};
struct mail_decoder {
- int command_topic_id;
- int header_topic_id;
- int body_topic_id;
- int attachment_topic_id;
- int eml_topic_id;
int exdata_id;
+ struct mail_topics topics;
+ struct mq_runtime *mq;
+ struct mq_schema *mq_schema;
+ struct module_manager *mod_mgr;
// tobe delete
stMailLocalInfo mail_local_info;
-
- struct module_manager *mod_mgr_ref;
};
#endif