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

Method append_header

lib_acl_cpp/src/smtp/mail_message.cpp:391–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391bool 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
407void mail_message::create_boundary(const char* id, string& out)
408{

Callers

nothing calls this directly

Calls 3

file_pathMethod · 0.80
last_serrorFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected