| 312 | } |
| 313 | |
| 314 | bool mail_message::append_subject(const char* subject, string& out) |
| 315 | { |
| 316 | out.append("Subject: "); |
| 317 | if (!rfc2047::encode(subject, (int) strlen(subject), &out, |
| 318 | charset_, 'B', false)) { |
| 319 | |
| 320 | logger_error("rfc2047::encode error!"); |
| 321 | return false; |
| 322 | } |
| 323 | out.append("\r\n"); |
| 324 | return true; |
| 325 | } |
| 326 | |
| 327 | bool mail_message::append_date(string& out) |
| 328 | { |