TODO:BAM -- note that address headers can only have usascii chars TODO:BAM -- lines can only be 76 chars long -- enforce that!
| 404 | // TODO:BAM -- note that address headers can only have usascii chars |
| 405 | // TODO:BAM -- lines can only be 76 chars long -- enforce that! |
| 406 | std::string cMailMessageUtil::FormatAddressHeader(const std::string& name, const std::string& addr) |
| 407 | { |
| 408 | cDebug d("cMailMessageUtil::FormatAddressHeader"); |
| 409 | |
| 410 | d.TraceDebug("name: %s, value: %s\n", name.c_str(), addr.c_str()); |
| 411 | |
| 412 | std::string s; |
| 413 | |
| 414 | s += name; |
| 415 | s += ": "; |
| 416 | s += addr; |
| 417 | s += "\r\n"; |
| 418 | |
| 419 | d.TraceDebug("came out as: %s\n", s.c_str()); |
| 420 | |
| 421 | return s; |
| 422 | } |
| 423 | |
| 424 | // TODO:BAM -- lines can only be 76 chars long -- enforce that! |
| 425 | std::string cMailMessageUtil::FormatNonAddressHeader(const std::string& name, const std::string& valC) |
nothing calls this directly
no test coverage detected