Mailing List Archive

[Bug 1103] New: exiqgrep fails on messages smaller 1K
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Summary: exiqgrep fails on messages smaller 1K
Product: Exim
Version: 4.75
Platform: All
OS/Version: All
Status: NEW
Severity: bug
Priority: low
Component: Exigrep

exiqgrep gets a parse error ("Line mismatch") on mails smaller than 1K: exim
lists those messages with only the number of bytes and no unit, the regex
reading the line expects a unit in every case:

The original line is in function collect:

if ($line =~
/^\s*(\w+)\s+((?:\d+(?:\.\d+)?[A-Z])?)\s*(\w{6}-\w{6}-\w{2})\s+(<.*?>)/) {

I propose the following change:

if ($line =~
/^\s*(\w+)\s+((?:\d+(?:\.\d+)?[A-Z]{0,1})?)\s*(\w{6}-\w{6}-\w{2})\s+(<.*?>)/) {

Configure bugmail:

## List details at Exim details at ##