diff --git a/plugins/mail/postfix_stats b/plugins/mail/postfix_stats index f0690c96..a6349347 100755 --- a/plugins/mail/postfix_stats +++ b/plugins/mail/postfix_stats @@ -81,7 +81,7 @@ TMP_RAW=$("${PFLOGSUMM}" -d today --detail 0 --zero-fill "${SYS_LOG}" "${SYS_LOG # Return -1 if any error occurs # parseValue() { - TMP_RETURN=$(echo "${TMP_RAW}" | grep -Ei '^[[:space:]]+[[:digit:]]+[[:space:]]+'"${1}"'.*$' | grep -oEi '[[:digit:]]+[[:space:]]+') + TMP_RETURN=$(echo "${TMP_RAW}" | grep -Ei '^[[:space:]]+[[:digit:]]+[[:space:]]+'"${1}"'.*$' | grep -oEi '[[:digit:]]+[[:space:]]+' | sed 's: ::g') if [[ -z "${TMP_RETURN}" ]] then echo -1