mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
566eaa0e13
* 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
16 lines
323 B
Bash
16 lines
323 B
Bash
#!/usr/bin/env sh
|
|
|
|
# Report a quota usage warning to an user
|
|
|
|
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
|
|
|
|
Your mailbox is now $PERCENT% full.
|
|
EOF
|