]> git.sven.stormbind.net Git - sven/pflogsumm.git/commitdiff
Fix milter-rejects patch regex. Kudos to Andreas Jaggi <debianbug@jaggi.info> for...
authorSven Hoexter <sven@stormbind.net>
Wed, 4 Jan 2023 12:08:43 +0000 (13:08 +0100)
committerSven Hoexter <sven@stormbind.net>
Wed, 4 Jan 2023 12:10:38 +0000 (13:10 +0100)
debian/changelog
debian/patches/milter-rejects

index 1d8d6630a29a83777a52dc2c113e4d0ce290fa01..70fb577aaa60a4f427cbdf5481d924fb29544fe5 100644 (file)
@@ -1,3 +1,10 @@
+pflogsumm (1.1.5-8) UNRELEASED; urgency=medium
+
+  * Fix regex in milter-rejects patch. Kudos to Andreas Jaggi
+    <debianbug@jaggi.info> for the report and patch. (Closes: #1027829)
+
+ -- Sven Hoexter <hoexter@debian.org>  Wed, 04 Jan 2023 13:08:05 +0100
+
 pflogsumm (1.1.5-7) unstable; urgency=medium
 
   * Re-Release for a source only upload. Package is unchanged.
index 2e15cca5653214ca445c0523b2f2caf695fbd15f..b03d9aaa45b0f0e2ea1542c9b3e3bc209d6c6610 100644 (file)
@@ -7,7 +7,7 @@ Index: pflogsumm/pflogsumm.pl
      # regexp rejects happen in "cleanup"
      if($cmd eq "cleanup" && (my($rejSubTyp, $rejReas, $rejRmdr) = $logRmdr =~
 -      /\/cleanup\[\d+\]: .*?\b(reject|warning|hold|discard): (header|body) (.*)$/) == 3)
-+       /\/cleanup\[\d+\]: .*?\b((?:milter-)reject|warning|hold|discard): (header|body|END-OF-MESSAGE) (.*)$/) == 3)
++       /\/cleanup\[\d+\]: .*?\b((?:milter-)?reject|warning|hold|discard): (header|body|END-OF-MESSAGE) (.*)$/) == 3)
      {
        $rejRmdr =~ s/( from \S+?)?; from=<.*$// unless($opts{'verbMsgDetail'});
        $rejRmdr = string_trimmer($rejRmdr, 64, $opts{'verbMsgDetail'});