|
a/src/utils/mimeparse.h |
|
b/src/utils/mimeparse.h |
|
... |
|
... |
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _MIME_H_INCLUDED_
|
17 |
#ifndef _MIME_H_INCLUDED_
|
18 |
#define _MIME_H_INCLUDED_
|
18 |
#define _MIME_H_INCLUDED_
|
19 |
/* @(#$Id: mimeparse.h,v 1.9 2006-09-22 07:42:55 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: mimeparse.h,v 1.10 2006-12-07 07:07:18 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
/*
|
20 |
/*
|
21 |
Mime definitions RFC to 4-9-2006:
|
21 |
Mime definitions RFC to 4-9-2006:
|
22 |
|
22 |
|
23 |
2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of
|
23 |
2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of
|
24 |
Internet Message Bodies. N. Freed, N. Borenstein. November 1996.
|
24 |
Internet Message Bodies. N. Freed, N. Borenstein. November 1996.
|
|
... |
|
... |
71 |
* @param in the input string should be like: value; pn1=pv1; pn2=pv2.
|
71 |
* @param in the input string should be like: value; pn1=pv1; pn2=pv2.
|
72 |
* Example: text/plain; charset="iso-8859-1"
|
72 |
* Example: text/plain; charset="iso-8859-1"
|
73 |
*/
|
73 |
*/
|
74 |
extern bool parseMimeHeaderValue(const string& in, MimeHeaderValue& psd);
|
74 |
extern bool parseMimeHeaderValue(const string& in, MimeHeaderValue& psd);
|
75 |
|
75 |
|
|
|
76 |
/**
|
76 |
/** Quoted printable decoding. Doubles up as rfc2231 decoder, hence the esc */
|
77 |
* Quoted printable decoding. Doubles up as rfc2231 decoder, hence the esc
|
|
|
78 |
* RFC2045 Quoted printable uses '=' , rfc2331 uses '%'. The two encodings are
|
|
|
79 |
* otherwise similar.
|
|
|
80 |
*/
|
77 |
extern bool qp_decode(const string& in, string &out,
|
81 |
extern bool qp_decode(const string& in, string &out, char esc = '=');
|
78 |
char esc = '=');
|
|
|
79 |
|
82 |
|
80 |
/** Decode an Internet mail field value encoded according to rfc2047
|
83 |
/** Decode an Internet mail field value encoded according to rfc2047
|
81 |
*
|
84 |
*
|
82 |
* Example input: Some words =?iso-8859-1?Q?RE=A0=3A_Smoke_Tests?= more input
|
85 |
* Example input: Some words =?iso-8859-1?Q?RE=A0=3A_Smoke_Tests?= more input
|
83 |
*
|
86 |
*
|