attached is a patch that updates the format expected in the nullmailer
mailq output.  the regex is a little more flexible and less specific
than the previous version.

hope this helps.

        andy

-- 
andrew bezella <abeze...@archive.org>
internet archive
--- a/plugins-scripts/check_mailq.pl.orig	2021-11-30 22:55:47.000000000 -0800
+++ b/plugins-scripts/check_mailq.pl	2022-09-08 11:12:20.961943936 -0700
@@ -531,9 +531,9 @@
 	}
 
 	while (<MAILQ>) {
-	    #2006-06-22 16:00:00  282 bytes
+	    #2022-08-25 01:30:40 502 bytes from <u...@example.com>
 
-	    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{2}[0-9]+\sbytes$/) {
+	    if (/^\d{4}-\d{2}-\d{2}\s+\d{2}\:\d{2}\:\d{2}\s+\d+\sbytes/) {
 		$msg_q++ ;
 	    }
 	}

Reply via email to