Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-16595

Mailq detection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: System Dashboard
    • Labels:
      None
    • ToDo:
    • Distro Version:
      14
    • Distro:
      Other

      Description

      I found that in file Overview.class.php in checkmailq() function the exec command does not correctly formed. If mailq detect that there are no queue, it send to STDERR message "mailq: Mail queue is empty". But the second argument $out of php exec only captures STDOUT from executable and so get the Freepbx error "No response from 'mailq' command".

      By default this code is used

      $lastline = exec($mailq, $out, $ret);

      But more correctly use that

      $lastline = exec($mailq.' 2>&1', $out, $ret);

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  xrobau Rob Thomas
                  Reporter:
                  Pretender Sergey Kazurov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    NextupJiraPlusStatus

                    Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.