-/* @(#) $Id$ */
+/* @(#) $Id: ./src/os_maild/maild.h, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
* License (version 2) as published by the FSF - Free Software
* Foundation.
*
- * License details at the LICENSE file included with OSSEC or
+ * License details at the LICENSE file included with OSSEC or
* online at: http://www.ossec.net/en/licensing.html
*/
/* Each timeout is x * 5 */
#define NEXTMAIL_TIMEOUT 2 /* Time to check for next msg - 5 */
-#define DEFAULT_TIMEOUT 18 /* socket read timeout - 18 (*5)*/
+#define DEFAULT_TIMEOUT 18 /* socket read timeout - 18 (*5)*/
#define SUBJECT_SIZE 128 /* Maximum subject size */
/* Maximum body size */
#define MAIL_SUBJECT_FULL2 "%d - %s - %s"
#endif
+#ifdef GEOIP
#define MAIL_BODY "\r\nOSSEC HIDS Notification.\r\n" \
"%s\r\n\r\n" \
"Received From: %s\r\n" \
"Rule: %d fired (level %d) -> \"%s\"\r\n" \
+ "%s" \
+ "%s" \
"Portion of the log(s):\r\n\r\n%s\r\n" \
"\r\n\r\n --END OF NOTIFICATION\r\n\r\n\r\n"
-
+#else
+#define MAIL_BODY "\r\nOSSEC HIDS Notification.\r\n" \
+ "%s\r\n\r\n" \
+ "Received From: %s\r\n" \
+ "Rule: %d fired (level %d) -> \"%s\"\r\n" \
+ "Portion of the log(s):\r\n\r\n%s\r\n" \
+ "\r\n\r\n --END OF NOTIFICATION\r\n\r\n\r\n"
+#endif
/* Mail msg structure */
typedef struct _MailMsg
#include "config/mail-config.h"
-/* Config function */
+/* Config function */
int MailConf(int test_config, char *cfgfile, MailConfig *Mail);