Mailing List Archive

[Bug 2705] read_message_body does not observe message_body_newlines
https://bugs.exim.org/show_bug.cgi?id=2705

--- Comment #1 from Jeremy Harris <jgh146exb@wizmail.org> ---
Yes, there's a disparate codepath for the filter-test; it goes back to at least
2004 - and message_body_newlines was only added in 2007 (ddea74fabb).

Ref: filtertest.c 126 - stores data having unconditionally replaced newline
with space.

I expect the filter in actual use rather than being tested will behave
differently,
so it's a bug.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2705] read_message_body does not observe message_body_newlines [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2705

--- Comment #2 from Roger Hunen <roger@hunen.net> ---
Created attachment 1376
--> https://bugs.exim.org/attachment.cgi?id=1376&action=edit
Proposed patch

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2705] read_message_body does not observe message_body_newlines [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2705

--- Comment #3 from Roger Hunen <roger@hunen.net> ---
I managed to test my filter using a patched version of Exim4. I have attached a
proposed patch (against current master).

> I expect the filter in actual use rather than being tested will
> behave differently,

Confirmed: in actual use $message_body behaves as expected (newlines preserved
when message_body_newlines is set to TRUE) and the filter works correctly.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##