source: trunk/include/sh_mail.h@ 242

Last change on this file since 242 was 216, checked in by katerina, 16 years ago

Fix ticket #138 (ability to specify SMTP port). Patch by lucas sizzo org.

File size: 2.2 KB
RevLine 
[1]1/* SAMHAIN file system integrity testing */
2/* Copyright (C) 1999 Rainer Wichmann */
3/* */
4/* This program is free software; you can redistribute it */
5/* and/or modify */
6/* it under the terms of the GNU General Public License as */
7/* published by */
8/* the Free Software Foundation; either version 2 of the License, or */
9/* (at your option) any later version. */
10/* */
11/* This program is distributed in the hope that it will be useful, */
12/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14/* GNU General Public License for more details. */
15/* */
16/* You should have received a copy of the GNU General Public License */
17/* along with this program; if not, write to the Free Software */
18/* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20#ifndef SH_MAIL_H
21#define SH_MAIL_H
22
23#define MAIL_IMMEDIATE 1
24#define MAIL_LATER 0
25
26/* set a relay server
27 */
[22]28int sh_mail_set_relay (const char * str_s);
[1]29
30/* send to all recpts. in one mail
31 */
[22]32int sh_mail_setFlag (const char * str);
[1]33
34/* set the subject string
35 */
[22]36int set_mail_subject (const char * str);
[1]37
38/* test mailbox
39 */
[20]40int sh_mail_sigverify (const char * s);
[1]41
42/* maximum number of mail attempts
43 */
44#define SH_MAX_FAIL 48
45
[22]46int sh_mail_setNum (const char * str);
[1]47
[22]48int sh_mail_setaddress (const char * address);
[1]49void reset_count_dev_mail(void);
[22]50int sh_mail_setaddress_int (const char * address);
[1]51
52/* call if not urgent
53 */
[214]54int sh_mail_pushstack (int severity, const char * msg, const char * alias);
[1]55
[216]56/* Set the port to use (default 25)
57 */
58int sh_mail_set_port (const char * str);
59
[1]60/* set sender of mail
61 */
[22]62int sh_mail_set_sender (const char *str);
[1]63
64#endif
Note: See TracBrowser for help on using the repository browser.