smf_smtp.h
Go to the documentation of this file.
1 /* spmfilter - mail filtering framework
2  * Copyright (C) 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 
26 #ifndef _SMF_SMTP_H
27 #define _SMF_SMTP_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #include "smf_settings.h"
34 #include "smf_envelope.h"
35 
40 typedef struct {
41  char *text;
42  int code;
44 
50 SMFSmtpStatus_T *smf_smtp_status_new(void);
51 
57 void smf_smtp_status_free(SMFSmtpStatus_T *status);
58 
68 SMFSmtpStatus_T *smf_smtp_deliver(SMFEnvelope_T *env, SMFTlsOption_T tls, char *msg_file, char *sid);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* _SMF_SMTP_H */