complete refactoring for start-mailserver.sh (#1605)

* completely refactored `start-mailserver.sh`
* added braces; correctly formatted tabs / spaces
*  included `start-mailserver` into shellcheck checks
* cleanup
* removed unnecessary shellcheck comments adding braces and "" where necessary
* corrected some mistakes in CONTRIBUTING
* Makefile now uses correct shellcheck
This commit is contained in:
Georg Lauterbach 2020-09-23 10:21:37 +02:00 committed by GitHub
parent 9b5d4d307c
commit 566eaa0e13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1555 additions and 1267 deletions

View file

@ -2,10 +2,11 @@
# Report a quota usage warning to an user
PERCENT=$1
USER=$2
DOMAIN=$3
PERCENT="${1}"
USER="${2}"
DOMAIN="${3}"
# shellcheck disable=SC2250
cat << EOF | /usr/lib/dovecot/dovecot-lda -d "$USER" -o "plugin/quota=maildir:User quota:noenforcing"
From: postmaster@$DOMAIN
Subject: quota warning