[exim-dev] [Bug 3050] New: Matching on message-id is wrong

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Bugzilla
Datum:  
To: exim-dev
Neue Treads: [exim-dev] [Bug 3050] exim -bp includes -H on old-format message_id, [exim-dev] [Bug 3050] exim -bp includes -H on old-format message_id, [exim-dev] [Bug 3050] exim -bp includes -H on old-format message_id, [exim-dev] [Bug 3050] exim -bp includes -H on old-format message_id
Betreff: [exim-dev] [Bug 3050] New: Matching on message-id is wrong
https://bugs.exim.org/show_bug.cgi?id=3050

            Bug ID: 3050
           Summary: Matching on message-id is wrong
           Product: Exim
           Version: 4.97
          Hardware: x86
                OS: FreeBSD
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Exigrep
          Assignee: unallocated@???
          Reporter: niels@???
                CC: exim-dev@???


After upgrading to 4.97, mails with the old-message-id look like

w{6}-\w{6}-\w{2}-H and not like w{6}-\w{6}-\w{2}

I guess a patch would be like:

--- exiqgrep.orig       2023-11-15 13:18:03.155420000 +0100
+++ exiqgrep    2023-11-15 13:17:23.951318000 +0100
@@ -113,7 +113,7 @@ sub collect() {
                #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*(?<msgid>(?:\w{6}-\w{6}-\w{2}(-H)?|\w{6}-\w{11}-\w{4}))        # old, 2023
msgid formats
                              \s+(?<from><.*?>)/x) {
                        my $msg = $+{msgid};
                        $id{$msg}{age} = $+{age};


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