ze-filter  (ze-filter-0.8.0-develop-180218)
ze-mimelist.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_MIMELIST_H
26 
34 /*
35  *
36  */
37 
38 char *chomp_filename(char *);
39 
41 
43  char *name;
44  char *value;
45 };
46 
47 #ifndef NB_ATTR
48 # define NB_ATTR 64
49 #endif /* NB_ATTR */
50 
52 
55  char *value;
58 };
59 
60 bool add_content_field_attr (content_field_T *, char *, char *);
65 
66 
67 typedef struct attachment_T attachment_T;
68 
69 struct attachment_T {
70  char *name;
71  char *disposition;
72  char *mimetype;
73  bool xfile;
74  struct attachment_T *next;
75 };
76 
80 int get_file_disposition (content_field_T *, char *, char *, size_t);
81 
82 
85 #define __ZE_MIMELIST_H
86 
87 #endif
char * chomp_filename(char *)
Definition: ze-mimelist.c:42
void free_attachment_list(attachment_T *)
Definition: ze-mimelist.c:218
attachment_T * add_attachment(attachment_T *file, attachment_T **)
Definition: ze-mimelist.c:243
void free_content_field_rec(content_field_T *)
Definition: ze-mimelist.c:176
content_field_T * next
Definition: ze-mimelist.h:57
int get_file_disposition(content_field_T *, char *, char *, size_t)
Definition: ze-mimelist.c:683
int extract_attachments(content_field_T *, attachment_T **)
Definition: ze-mimelist.c:330
void free_content_field(content_field_T *)
Definition: ze-mimelist.c:152
#define NB_ATTR
Definition: ze-mimelist.h:48
content_field_T * save_content_field(content_field_T *, content_field_T **)
Definition: ze-mimelist.c:116
char * mimetype
Definition: ze-mimelist.h:72
void free_content_field_list(content_field_T *)
Definition: ze-mimelist.c:201
char * name
Definition: ze-mimelist.h:70
bool add_content_field_attr(content_field_T *, char *, char *)
Definition: ze-mimelist.c:80
struct attachment_T * next
Definition: ze-mimelist.h:74
char * disposition
Definition: ze-mimelist.h:71