Skip to content

Commit

Permalink
Fix spool_wireformat final-dot on LMTP transport. Bug 2258
Browse files Browse the repository at this point in the history
Broken-by: 328c568
  • Loading branch information
Jeremy Harris committed Mar 23, 2018
1 parent d9604f3 commit f64e8b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/doc-txt/ChangeLog
Expand Up @@ -171,6 +171,9 @@ JH/31 Bug 2257: Fix pipe transport to not use a socket-only syscall.
HS/03 Set a handler for SIGTERM and call exit(3) if running as PID 1. This
allows proper process termination in container environments.

JH/32 Bug 2258: Fix spool_wireformat in combination with LMTP transport.
Previously the "final dot" had a newline after it; ensure it is CR,LF.


Exim version 4.90
-----------------
Expand Down
4 changes: 3 additions & 1 deletion src/src/transport.c
Expand Up @@ -1132,9 +1132,10 @@ if (!(tctx->options & topt_no_body))
if (len != 0) return FALSE;
}

/* Finished with the check string */
/* Finished with the check string, and spool-format consideration */

nl_check_length = nl_escape_length = 0;
spool_file_wireformat = FALSE;

/* If requested, add a terminating "." line (SMTP output). */

Expand Down Expand Up @@ -1401,6 +1402,7 @@ filter was not NL, insert a NL to make the SMTP protocol work. */
if (yield)
{
nl_check_length = nl_escape_length = 0;
spool_file_wireformat = FALSE;
if ( tctx->options & topt_end_dot
&& ( last_filter_was_NL
? !write_chunk(tctx, US".\n", 2)
Expand Down

0 comments on commit f64e8b5

Please sign in to comment.