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

Method append_addr

lib_acl_cpp/src/smtp/mail_message.cpp:247–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245#endif // defined(_WIN32) || defined(_WIN64)
246
247bool mail_message::append_addr(const rfc822_addr& addr, string& out)
248{
249 if (addr.comment) {
250 out.append("\"");
251 if (!rfc2047::encode(addr.comment, (int) strlen(addr.comment),
252 &out, charset_, 'B', false)) {
253
254 logger_error("rfc2047::encode(%s) error",
255 addr.comment);
256 return false;
257 }
258 out.append("\" ");
259 }
260
261 out.format_append("<%s>", addr.addr);
262 return true;
263}
264
265bool mail_message::append_addr(const char* name, const rfc822_addr& addr,
266 string& out)

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected