Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib-smtp: server: Fix forwarding a multi-line reply.
A multi-line reply had the '-' on the first line stripped upon sending, which makes clients see two separate responses rather than just one. This was caused by the fact that forwarded replies had the last_line field not set properly, in which case the '-' was substituted on the first line, rather than the last. The fix makes a forwarded reply indistinguishable from a normally created reply by also allowing for amending the reply with additional lines using smtp_server_reply_add_text().
- Loading branch information