diff options
Diffstat (limited to 'src/smtp.c')
| -rw-r--r-- | src/smtp.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -751,6 +751,11 @@ static int build_message(const struct smtp_message *m, const char *from, } buf_appendf(out, "<%s>\r\n", from); buf_appendf(out, "To: <%s>\r\n", to); + if (m->reply_to && m->reply_to[0]) { + char *rt = sanitize_dup(m->reply_to); + buf_appendf(out, "Reply-To: <%s>\r\n", rt); + free(rt); + } char *subject = sanitize_dup(m->subject ? m->subject : ""); buf_append_str(out, "Subject: "); |
