4
0
Эх сурвалжийг харах

Fix #522 - minutes and seconds are not recognized properly in nullmailer SMTP queue.

madlohe 6 жил өмнө
parent
commit
b1be782cc7

+ 1 - 0
NEWS

@@ -3,6 +3,7 @@ This file documents the major additions and syntax changes between releases.
 2.3.2 2020-??-??
 	FIXES
 	check_http: Fix host:port syntax when using -H (Isaac White)
+	check_mailq: Fix nullmailer regular expression to recognize minutes and seconds properly (#522)
 
 2.3.1 2019-12-09
 	FIXES

+ 1 - 1
plugins-scripts/check_mailq.pl

@@ -587,7 +587,7 @@ elsif ( $mailq eq "nullmailer" ) {
 	while (<MAILQ>) {
 	    #2006-06-22 16:00:00  282 bytes
 
-	    if (/^[1-9][0-9]*-[01][0-9]-[0-3][0-9]\s[0-2][0-9]\:[0-2][0-9]\:[0-2][0-9]\s{1,2}[0-9]+\sbytes$/) {
+	    if (/^[1-9][0-9]*-[01][0-9]-[0-3][0-9]\s[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\s{1,2}[0-9]+\sbytes$/) {
 		$msg_q++ ;
 	    }
 	}