Displaying 1 result from an estimated 1 matches for "mail_log_field_local_ip".
2014 Aug 05
1
[Patch] mail_log plugin supports remote, local ip addresses
..."network.h"
+
#define MAILBOX_NAME_LOG_LEN 64
#define HEADER_LOG_LEN 80
@@ -27,7 +29,9 @@
MAIL_LOG_FIELD_VSIZE = 0x10,
MAIL_LOG_FIELD_FLAGS = 0x20,
MAIL_LOG_FIELD_FROM = 0x40,
- MAIL_LOG_FIELD_SUBJECT = 0x80
+ MAIL_LOG_FIELD_SUBJECT = 0x80,
+ MAIL_LOG_FIELD_REMOTE_IP = 0x100,
+ MAIL_LOG_FIELD_LOCAL_IP = 0x200
};
#define MAIL_LOG_DEFAULT_FIELDS \
(MAIL_LOG_FIELD_UID | MAIL_LOG_FIELD_BOX | \
@@ -58,6 +62,8 @@
"flags",
"from",
"subject",
+ "rip",
+ "lip",
NULL
};
@@ -265,6 +271,14 @@
mail_get_keywords(mail));
str_append(text,...