<p>Just turning attached patch of github issue <a href="https://github.com/nagios-plugins/nagios-plugins/issues/1099" class="issue-link" title='Please add "use sudo" option to check_mailq  [sf#3573821]'>#1099</a> into a push request<br>
(with some modifications)</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/waja/nagios-plugins github1099</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/nagios-plugins/nagios-plugins/pull/1171'>https://github.com/nagios-plugins/nagios-plugins/pull/1171</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>check_mailq: add sudo support</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1171/files#diff-0">THANKS.in</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/nagios-plugins/nagios-plugins/pull/1171/files#diff-1">plugins-scripts/check_mailq.pl</a>
    (19)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/nagios-plugins/nagios-plugins/pull/1171.patch'>https://github.com/nagios-plugins/nagios-plugins/pull/1171.patch</a></li>
  <li><a href='https://github.com/nagios-plugins/nagios-plugins/pull/1171.diff'>https://github.com/nagios-plugins/nagios-plugins/pull/1171.diff</a></li>
</ul>