Mailing List Archive

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

Bug ID: 2705
Summary: read_message_body does not observe
message_body_newlines
Product: Exim
Version: 4.92
Hardware: All
OS: All
Status: NEW
Severity: bug
Priority: medium
Component: Filters
Assignee: unallocated@exim.org
Reporter: roger@hunen.net
CC: exim-dev@exim.org

Created attachment 1371
--> https://bugs.exim.org/attachment.cgi?id=1371&action=edit
Exim filter example

I am testing an Exim filter using 'exim4 -C configfile -bf filterfile <
messagefile'. The filter passes $message_body to a Perl function (see
attachment).

Symptom: the message body received by the Perl function has newlines replaced
by spaces even though message_body_newlines is set to TRUE in the configuration
file.

Analysis: the string expansion for $message_body (vtype_msgbody) in
find_variable (file: expand.c) looks correct. However, in filter test mode
(-bf) $message_body is already set up in read_message_body (file:
filtertest.c). Unlike find_variable this function does not observe
message_body_newlines and thus always replaces newlines with spaces.

--
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/ ##