[exim-dev] [Bug 1103] New: exiqgrep fails on messages smalle…

Top Page
Delete this message
Reply to this message
Author: Oliver Brandmueller
Date:  
To: exim-dev
New-Topics: [exim-dev] [Bug 1103] exiqgrep fails on messages smaller 1K, [exim-dev] [Bug 1103] exiqgrep fails on messages smaller 1K
Subject: [exim-dev] [Bug 1103] New: exiqgrep fails on messages smaller 1K
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1103
           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
        AssignedTo: nigel@???
        ReportedBy: ob@???
                CC: exim-dev@???



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: http://bugs.exim.org/userprefs.cgi?tab=email