summaryrefslogtreecommitdiff
path: root/decoders/mail/mail_decoder_util.h
diff options
context:
space:
mode:
authorzhuzhenjun <[email protected]>2024-11-27 08:59:59 +0000
committerzhuzhenjun <[email protected]>2024-11-27 08:59:59 +0000
commit021d5da694b9e73b01a87a3510c365193371cf52 (patch)
tree0ac15411256b78ed81cd6682ae73264c70608759 /decoders/mail/mail_decoder_util.h
parent3694c142d974ab35f55bde4a8519525b9afcbc84 (diff)
init mail decoderdev-mail-decoder
Diffstat (limited to 'decoders/mail/mail_decoder_util.h')
-rw-r--r--decoders/mail/mail_decoder_util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/decoders/mail/mail_decoder_util.h b/decoders/mail/mail_decoder_util.h
index 23f70ab..ad25d4d 100644
--- a/decoders/mail/mail_decoder_util.h
+++ b/decoders/mail/mail_decoder_util.h
@@ -29,6 +29,20 @@
#define MAIL_MAX_CHARSET_LEN 32
#define MAIL_ELEM_NUM 16
+enum MAIL_TOPIC{
+ MAIL_TOPIC_COMMAND,
+ MAIL_TOPIC_HEADER,
+ MAIL_TOPIC_BODY,
+ MAIL_TOPIC_ATTACHMENT,
+ MAIL_TOPIC_EML,
+ MAIL_TOPIC_MAX,
+};
+
+struct mail_topics {
+ const char *topic_names[MAIL_TOPIC_MAX];
+ int topic_ids[MAIL_TOPIC_MAX];
+};
+
typedef struct _mail_elem_info
{
int buflen;