fix(listmailuser): Don't parse comments when reading config (#2617)

* fix(listmailuser): Don't parse comments

Avoids passing comments to `dovecot_quota_to_hr()` which fails to handle it and would throws errors.

* chore: Move config filter method to `helpers/utils.sh`
This commit is contained in:
Brennan Kinney 2022-06-06 11:02:52 +12:00 committed by GitHub
parent 40e2d88482
commit 1f3e672018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View file

@ -47,6 +47,7 @@ do
else
echo
fi
done < "${DATABASE}"
done < <(_filter_to_valid_lines "${DATABASE}")
exit 0