On Mon, 11 Mar 2002, Patrice Fournier wrote:
> You probably want to change the 3.35 patch so that it doesn't check only
> the last char of the body... (body++ does counter the len--) Here's a
> manually edited patch, hope I didn't forget something (I don't generally
> use that format for patches):
Thanks. I got it right for the 4.01 patch, but screwed up when I was
retrofitting it to 3.35. This is indeed the correct 3.35 patch. I'm glad
that people actually read patches before applying them!
> -----------------------------------------------------------------------
> *** exim-3.35/src/expand.c Tue Feb 19 10:10:43 2002
> --- expand.c Mon Mar 11 17:00:01 2002
> ***************
> *** 572,580 ****
> lseek(deliver_datafile, start_offset, SEEK_SET);
> len = read(deliver_datafile, body, len);
> if (len >= 0) body[len] = 0;
> ! while (*body != 0)
> {
> ! if (*body == '\n') *body = ' ';
> ! body++;
> }
> }
> --- 572,579 ----
> lseek(deliver_datafile, start_offset, SEEK_SET);
> len = read(deliver_datafile, body, len);
> if (len >= 0) body[len] = 0;
> ! while (len > 0)
> {
> ! if (body[--len] == '\n' || body[len] == 0) body[len] = ' ';
> }
> }
> -----------------------------------------------------------------------
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.