forked from sba1/simplemail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodecs.h
44 lines (34 loc) · 1.73 KB
/
codecs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/***************************************************************************
SimpleMail - Copyright (C) 2000 Hynek Schlawack and Sebastian Bauer
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***************************************************************************/
/*
** codecs.h
*/
#ifndef SM__CODECS_H
#define SM__CODECS_H
#ifndef SM__CODESETS_H
#include "codesets.h"
#endif
struct list;
char *decode_base64(unsigned char *buf, unsigned int len, unsigned int *ret_len);
char *decode_quoted_printable(unsigned char *buf, unsigned int len, unsigned int *ret_len, int header);
char *encode_header_field(char *field_name, char *field_contents);
char *encode_header_field_utf8(char *field_name, char *field_contents);
char *encode_address_field(char *field_name, struct list *address_list);
char *encode_address_field_utf8(char *field_name, struct list *address_list);
char *encode_address_puny(utf8 *email);
char *encode_base64(unsigned char *buf, unsigned int len);
char *encode_body(unsigned char *buf, unsigned int len, char *content_type, unsigned int *ret_len, char **encoding);
char *identify_file(char *fname);
#endif