| 328 | } |
| 329 | |
| 330 | static void append_recipients(string& out, const char* tagname, |
| 331 | const std::list<char*>& recipients) |
| 332 | { |
| 333 | if (recipients.empty()) { |
| 334 | return; |
| 335 | } |
| 336 | std::list<char*>::const_iterator cit = recipients.begin(); |
| 337 | out.format_append("%s: %s", tagname, *cit); |
| 338 | ++cit; |
| 339 | if (cit == recipients.end()) { |
| 340 | out.append("\r\n"); |
| 341 | return; |
| 342 | } |
| 343 | for (; cit != recipients.end(); ++cit) { |
| 344 | out.format_append(",\r\n %s", *cit); |
| 345 | } |
| 346 | out.append("\r\n"); |
| 347 | } |
| 348 | |
| 349 | void mime_head::build_head(string& out, bool clean) |
| 350 | { |
no test coverage detected
searching dependent graphs…