[exim] exim 4.97.1 exiqgrep - line mismatch => broke munin

Pàgina inicial
Delete this message
Reply to this message
Autor: Cyborg
Data:  
A: exim users
Assumpte: [exim] exim 4.97.1 exiqgrep - line mismatch => broke munin
Hi all,

Fedora pushed an exim 4.97.1 update last night and now exiqgrep -cz
shows this error message, which breaks the munin plugin für the mailqueue.

[~]# mailq
 9h  2.2K 1rO3sE-005JbF-1D-H <> *** frozen ***
          xxxxxx@???

[~]# exiqgrep -cz
Line mismatch:  9h  2.2K 1rO3sE-005JbF-1D-H <> *** frozen ***

because:

# exim -bpu
 9h  2.2K 1rO3sE-005JbF-1D-H <> *** frozen ***
          xxxxxx@???

but according to the perl code should be:

 9h  2.2K 1rO3sE-005JbF-1D-H <x@???>

"collect" subroutine in exiqgrep has this REGEXP:

                #Should be 1st line of record, if not error.
                if ($line =~ /^\s*(?<age>\w+)
\s+(?<size>(?:\d+(?:\.\d+)?[A-Z]?)?)
\s*(?<msgid>(?:\w{6}-\w{6}-\w{2}|\w{6}-\w{11}-\w{4}))     # old, 2023
msgid formats
                              \s+(?<from><.*?>)/x) {


which does not seem to be correct:

a) if the exim mailqueue is read line by line, <FROM> will be in a
different line, as the rest of the issue.

b) "<> *** frozen ***" is not handled, but i'm no expert in perl regexp
magic foo ;)


Any quick fix for exiqgrep available i can apply and give to the exim
maintainer @ fedora?


best regards,
Marius

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