[exim-dev] [Bug 2000] BDAT injection/transmission character …

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2000] BDAT injection/transmission character loss
https://bugs.exim.org/show_bug.cgi?id=2000

--- Comment #1 from Andreas Metzler <eximusers@???> ---
(In reply to Andreas Metzler from comment #0)
[...]
> ... I get a partially spool-file with "body_linecount 0". If this message is
> not delivered locally but again passed on via SMTP BDAT (to exim 4.88) at
> least one character of the message body (the final "3") is lost.


Manually fixing body_linecount in the spool file makes exim send the complete
message out.

BTW the exim documentation is minimally incorrect for BDAT:

| Format of spool files

[...]
| If you change the number of lines in the file, the value of $body_linecount,
| which is stored in the -H file, will be incorrect. At present, this value is
| not used by Exim, but there is no guarantee that this will always be the

case.

When exim sends out mail via BDAT $body_linecount from the -H spoolfile *is*
used. See src/src/transport.c 969
    if (tctx->options & topt_use_crlf)
      size += body_linecount;    /* account for CRLF-expansion */


cu Andreas

--
You are receiving this mail because:
You are on the CC list for the bug.