| 92 | } |
| 93 | |
| 94 | bool mail_body::build(const char* in, size_t len, const char* content_type, |
| 95 | const char* charset, mime_code& coder, string& out) const |
| 96 | { |
| 97 | out.format_append("Content-Type: %s;\r\n", content_type); |
| 98 | out.format_append("\tcharset=\"%s\"\r\n", charset); |
| 99 | out.format_append("Content-Transfer-Encoding: %s\r\n\r\n", |
| 100 | coder.get_encoding_type()); |
| 101 | coder.encode_update(in, (int) len, &out); |
| 102 | coder.encode_finish(&out); |
| 103 | return true; |
| 104 | } |
| 105 | |
| 106 | bool mail_body::build_html(const char* in, size_t len, |
| 107 | const char* charset, string& out) const |
nothing calls this directly
no test coverage detected