[exim-dev] [Bug 3061] New: Log line is multi-line

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Bugzilla
Datum:  
To: exim-dev
Betreff: [exim-dev] [Bug 3061] New: Log line is multi-line
https://bugs.exim.org/show_bug.cgi?id=3061

            Bug ID: 3061
           Summary: Log line is multi-line
           Product: Exim
           Version: 4.97
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Logging
          Assignee: unallocated@???
          Reporter: exim@???
                CC: exim-dev@???


The code in line 813 of src/parse.c creates multi-line logging. This is
unexpected , unusual and does not work correctly with scripts like exigrep.

Can easily reproduced:

(1) The exim configuration must contain at least one rewrite rule:

begin rewrite
a@b     y@z     T



(2) Transport a mail with malformed address in header:

swaks --pipe '/path/to/exim -bs' -f user@??? -t user@???
--add-header 'Reply-To: a@b@c'

Generates a multi-line log entry:

2023-12-18 18:00:15 1rFGyV-00000000Jxy-2xDy rewrite: malformed address: @c
may not follow a@b

There should be no line feed after "@c".

Furthermore, it seems to me to be a mistake that the header is parsed at all
for a rewrite rule of the envelope address. This should only happen if an
address in the header is treated with rewrite.

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

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/