Add pthread checks to CMakeLists.txt
[inoclam.git] / smtp.hxx
blob69919c9db182590f30b9534a29dc55480f669fa1
1 /*
2 * inoclam - Inotify+ClamAV virus scanner
3 * Copyright (C) 2007 Vermont Department of Taxes
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 * Contributor(s):
20 * Tom Cort <tom.cort@state.vt.us>
23 #ifndef __SMTP_HXX
24 #define __SMTP_HXX
26 #include <confuse.h>
28 /**
29 * The default address to send e-mail notifications to
31 #define SMTP_TO "root@localhost"
33 /**
34 * The default return address for e-mail notifications
36 #define SMTP_FROM "root@localhost"
38 /**
39 * The default subject line used for e-mail notifications
41 #define SMTP_SUBJECT "[inoclam] Virus Detected"
43 /**
44 * The default hostname of the SMTP server you wish to use for e-mail notifications
46 #define SMTP_HOST "localhost"
48 /**
49 * The default TCP port to connect to for e-mail notifications
51 #define SMTP_PORT (25)
53 /**
54 * Enable or disable e-mail notifications by setting this to cfg_true or cfg_false
56 extern cfg_bool_t smtp_enabled;
58 /**
59 * The hostname of the SMTP server you wish to use for e-mail notifications
61 extern char *smtp_host;
63 /**
64 * The TCP port to connect to for e-mail notifications
66 extern int smtp_port;
68 /**
69 * The address to send e-mail notifications to
71 extern char *smtp_to;
73 /**
74 * The return address for e-mail notifications
76 extern char *smtp_from;
78 /**
79 * The subject line used for e-mail notifications
81 extern char *smtp_subject;
83 /**
84 * Sends an E-Mail.
86 void smtp_send(char *smtp_body);
88 #endif