|
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.5 2006-01-30 11:15:28 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: mimeparse.h,v 1.6 2006-09-05 08:04:36 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
#include <map>
|
22 |
#include <map>
|
23 |
|
23 |
|
24 |
#include "base64.h"
|
24 |
#include "base64.h"
|
|
... |
|
... |
42 |
extern bool qp_decode(const std::string& in, std::string &out);
|
42 |
extern bool qp_decode(const std::string& in, std::string &out);
|
43 |
|
43 |
|
44 |
/** Decode an Internet mail header value encoded according to rfc2047
|
44 |
/** Decode an Internet mail header value encoded according to rfc2047
|
45 |
*
|
45 |
*
|
46 |
* Example input: =?iso-8859-1?Q?RE=A0=3A_Smoke_Tests?=
|
46 |
* Example input: =?iso-8859-1?Q?RE=A0=3A_Smoke_Tests?=
|
|
|
47 |
* The input normally comes from parseMimeHeaderValue() output
|
|
|
48 |
* and no comments or quoting are expected.
|
47 |
* @param in input string, ascii with rfc2047 markup
|
49 |
* @param in input string, ascii with rfc2047 markup
|
48 |
* @return out output string encoded in utf-8
|
50 |
* @return out output string encoded in utf-8
|
49 |
*/
|
51 |
*/
|
50 |
extern bool rfc2047_decode(const std::string& in, std::string &out);
|
52 |
extern bool rfc2047_decode(const std::string& in, std::string &out);
|
51 |
|
53 |
|