ze-filter  (ze-filter-0.8.0-develop-180218)
ze-smtp-divers.h
Go to the documentation of this file.
1 /*
2  *
3  * ze-filter - Mail Server Filter for sendmail
4  *
5  * Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6  *
7  * Auteur : Jose Marcio Martins da Cruz
8  * jose.marcio.mc@gmail.org
9  *
10  * Historique :
11  * Creation : janvier 2002
12  *
13  * This program is free software, but with restricted license :
14  *
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19  *
20  * More details about ze-filter license can be found at ze-filter
21  * web site : http://foss.jose-marcio.org
22  */
23 
24 
25 #ifndef __ZE_SMTP_DIVERS_H
26 
27 time_t header_date2secs(char *date);
28 
29 char *extract_email_address(char *, char *, size_t);
30 char *extract_host_from_email_address(char *, char *, size_t);
31 
32 typedef struct smtp_reply_T
33 {
35  char rcode[6];
36  char xcode[6];
37  char msg[256];
38  int result;
39 } smtp_reply_T;
40 
41 int jc_string2reply(smtp_reply_T *, char *);
42 bool jc_fill_reply(smtp_reply_T *, char *, char *, char *, int);
44 
45 #define __ZE_SMTP_DIVERS_H
46 #endif
uint32_t signature
void jc_reply_free(smtp_reply_T *)
bool jc_fill_reply(smtp_reply_T *, char *, char *, char *, int)
char * extract_email_address(char *, char *, size_t)
struct smtp_reply_T smtp_reply_T
char * extract_host_from_email_address(char *, char *, size_t)
time_t header_date2secs(char *date)
char msg[256]
int jc_string2reply(smtp_reply_T *, char *)
long uint32_t
Definition: ze-sys.h:489