MCPcopy Create free account
hub / github.com/acl-dev/acl / mime_attach

Method mime_attach

lib_acl_cpp/src/mime/mime_attach.cpp:12–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace acl {
11
12mime_attach::mime_attach(const char* emailFile, const MIME_NODE* node,
13 bool enableDecode /* = true */,
14 const char* toCharset /* = "gdb2312" */,
15 long long off /* = 0 */)
16: mime_node(emailFile, node, enableDecode, toCharset, off)
17, m_filename(128)
18{
19 if (node->header_filename) {
20 if (toCharset) {
21 rfc2047 rfc;
22 rfc.decode_update(node->header_filename,
23 (int) strlen(node->header_filename));
24 rfc.decode_finish(toCharset, &m_filename);
25 } else {
26 m_filename = node->header_filename;
27 }
28 }
29}
30
31mime_attach::~mime_attach()
32{

Callers

nothing calls this directly

Calls 2

decode_updateMethod · 0.45
decode_finishMethod · 0.45

Tested by

no test coverage detected