| 389 | } |
| 390 | |
| 391 | bool mail_message::append_header(ofstream& fp) |
| 392 | { |
| 393 | string buf; |
| 394 | |
| 395 | if (!build_header(buf)) { |
| 396 | return false; |
| 397 | } |
| 398 | |
| 399 | if (fp.write(buf) == -1) { |
| 400 | logger_error("write mail header to %s error %s", |
| 401 | fp.file_path(), last_serror()); |
| 402 | return false; |
| 403 | } |
| 404 | return true; |
| 405 | } |
| 406 | |
| 407 | void mail_message::create_boundary(const char* id, string& out) |
| 408 | { |
nothing calls this directly
no test coverage detected