1 /*
2 ** Modular Logfile Analyzer
3 ** Copyright 2000 Jan Kneschke <jan@kneschke.de>
4 **
5 ** Homepage: http://www.modlogan.org
6 **
7 
8     This program is free software; you can redistribute it and/or modify
9     it under the terms of the GNU General Public License as published by
10     the Free Software Foundation; either version 2 of the License, or
11     (at your option) any later version, and provided that the above
12     copyright and permission notice is included with all distributed
13     copies of this or derived software.
14 
15     This program is distributed in the hope that it will be useful,
16     but WITHOUT ANY WARRANTY; without even the implied warranty of
17     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18     GNU General Public License for more details.
19 
20     You should have received a copy of the GNU General Public License
21     along with this program; if not, write to the Free Software
22     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
23 
24 **
25 ** $Id: plugin_config.h,v 1.5 2003/09/05 06:42:43 miham Exp $
26 */
27 #ifndef _INPUT_PLUGIN_CONFIG_H_
28 #define _INPUT_PLUGIN_CONFIG_H_
29 
30 #include <pcre.h>
31 
32 #include "mconfig.h"
33 #include "mrecord.h"
34 #include "mio.h"
35 
36 typedef struct {
37 	char	*inputfilename;
38 
39 	mfile	inputfile;
40 	buffer	*buf;
41 
42 	pcre	*match_syslog;
43 	pcre	*match_sendmail_to;
44 	pcre	*match_sendmail_from;
45 	pcre	*match_sendmail_warning;
46 	pcre	*match_sendmail_noqueue;
47 	pcre	*match_sendmail_recipient;
48 	pcre  *match_timestamp;
49 } config_input;
50 
51 int mplugins_input_sendmail_get_next_record(mconfig *ext_conf, mlogrec *record);
52 
53 #endif
54