Imported Upstream version 2.7
[ossec-hids.git] / src / config / mail-config.h
1 /*   $OSSEC, mail-config.h, v0.1, 2006/04/06, Daniel B. Cid$   */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All right reserved.
5  *
6  * This program is a free software; you can redistribute it
7  * and/or modify it under the terms of the GNU General Public
8  * License (version 2) as published by the FSF - Free Software
9  * Foundation
10  */
11
12
13
14 #ifndef _MCCONFIG__H
15 #define _MCCONFIG__H
16 #include "shared.h"
17
18
19 /* Mail config structure */
20 typedef struct _MailConfig
21 {
22     int mn;
23     int maxperhour;
24     int strict_checking;
25     int groupping;
26     int subject_full;
27     int priority;
28     char **to;
29     char *from;
30     char *smtpserver;
31
32     /* Granular e-mail options */
33     int *gran_level;
34     int **gran_id;
35     int *gran_set;
36     int *gran_format;
37     char **gran_to;
38
39 #ifdef GEOIP
40     /* Use GeoIP */
41     int geoip;
42 #endif
43
44     OSMatch **gran_location;
45     OSMatch **gran_group;
46 }MailConfig;
47
48
49 /** Email message formats **/
50 #define FULL_FORMAT     2
51 #define SMS_FORMAT      3
52 #define FORWARD_NOW     4
53 #define DONOTGROUP      5
54
55 #endif