diff --git a/plugins/postfix/postfix_stats b/plugins/postfix/postfix_stats index 12da3c9a6..82469b60a 100755 --- a/plugins/postfix/postfix_stats +++ b/plugins/postfix/postfix_stats @@ -120,10 +120,11 @@ fi # # Variable to store the pflogsumm result. -# shellcheck disable=SC2086 if [ -n "${FILTER_HOSTNAME}" ]; then + # shellcheck disable=SC2086 TMP_RAW=$(grep -h " ${FILTER_HOSTNAME} postfix/" ${MAIL_LOG} | "${PFLOGSUMM}" -d today --detail 0 --zero-fill) else + # shellcheck disable=SC2086 TMP_RAW=$("${PFLOGSUMM}" -d today --detail 0 --zero-fill ${MAIL_LOG}) fi