This patch [at the review] extend the pattern of `opt_M` to include "opensmtp" and also adds new case to `if conditions` and therefore extends the mailq to support opensmtp.
I cannot see a patch here. Could you please attach the patch to the PR?
Created attachment 186294 [details] Patch regarding to the review [adds opensmtp support] Sorry I thought Linking to the Phabricator review is enough ``:-] BTW, the patch is attached :)
Mmmm, oh, I did not see the review link. But the fact remains, it is a pain to extract a diff from a review, as you can't use fetch on the "download diff" link, for some reason.
(In reply to Mathieu Arnold from comment #3) Hmm, yeah :D I usually add a .diff to the Phabricator link and it works :) But BTW, I attached the patch here too :D
Do you have links to the issues opened upstream ? So that I can track when the patch can be removed ?
Found it. The patch is very quite different from what went in upstream. Is there a good reason to have a patch so different ?
(In reply to Mathieu Arnold from comment #6) Hmm, I think maybe you found something different? Here is the upstream --> https://github.com/monitoring-plugins/monitoring-plugins/pull/1495
(In reply to Mahdi Mokhtari from comment #7) It's not that different (basically it's the same)...
Since v2.2, upstream got an opensmtpd and a opensmtp, I was looking at the last commit which added opensmtp*d*, and missed the "d" in it.
(it is all confusing because the commit message that adds "opensmtp" contains about "opensmtpd")
The patch is for opensmtpd, the parameter is just called "opensmtp" instead of "opensmtpd". Where in 2.2 is there already opensmtp[d] support in mailq?
Found out what was wrong. I managed to get nagios-plugins (which already has opensmtp and opensmtpd support) in my monitoring-plugins git repository. So, now that I have unscrambled everything, I see that monitoring-plugins still has the issue open and nagios-plugins has it committed in, ready for a future release.
Ah, yes, Filias committed the patch to both, nagios-plugins and monitoring-plugins.
A commit references this bug: Author: mat Date: Thu Sep 14 11:58:58 UTC 2017 New revision: 449835 URL: https://svnweb.freebsd.org/changeset/ports/449835 Log: Add support for opensmtp in check_mailq. PR: 222237 Submitted by: mmokhi Obtained from: https://github.com/nagios-plugins/nagios-plugins/commit/d56818f5121b05439c7b7a1655d96ab39e066797 Obtained from: https://github.com/monitoring-plugins/monitoring-plugins/pull/1495 Sponsored by: Absolight Changes: head/net-mgmt/monitoring-plugins/Makefile head/net-mgmt/monitoring-plugins/files/patch-plugins-scripts_check__mailq.pl head/net-mgmt/nagios-plugins/Makefile head/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__mailq.pl