Home
Documentation
API
Download
Header list
Data Structures
Data Fields
Globals
smf_core.h
Go to the documentation of this file.
1
/* spmfilter - mail filtering framework
2
* Copyright (C) 2009-2012 Axel Steiner and SpaceNet AG
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 3 of the License, or (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
23
#ifndef _SMF_CORE_H
24
#define _SMF_CORE_H
25
35
char
*smf_core_strstrip(
char
*s);
36
43
char
*smf_core_strlwc(
char
*s);
44
53
char
*smf_core_strcat_printf(
char
**s,
const
char
*fmt, ...);
54
64
char
**smf_core_strsplit(
const
char
*s,
char
*sep,
int
*nelems);
65
75
int
smf_core_gen_queue_file(
const
char
*queue_dir,
char
**tempname,
const
char
*sid);
76
83
char
*smf_core_md5sum(
const
char
*data);
84
91
char
*smf_core_get_maildir_filename(
void
);
92
102
int
smf_core_expand_string(
const
char
*format,
const
char
*addr,
char
**buf);
103
112
int
smf_core_copy_file(
const
char
*source,
const
char
*dest);
113
123
int
smf_core_copy_to_fd(
const
char
*source,
int
dest);
124
125
#endif
/* _SMF_CORE_H */