diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-21 10:34:13 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-21 10:34:13 +0200 |
| commit | e25a8c9ae70e5a310c1a82be55d0dbf58ba71250 (patch) | |
| tree | 3368133cb605fef92548838c90c7e0bd7cea502d /src/smtp.c | |
| parent | ecf1e1098969c36580fc274cb70a8fd60412edf6 (diff) | |
| download | bokf-e25a8c9ae70e5a310c1a82be55d0dbf58ba71250.tar.gz bokf-e25a8c9ae70e5a310c1a82be55d0dbf58ba71250.zip | |
mail: honor smtp_reply_to; mention payroll in agent instructions
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: "); |
