-#!/bin/sh
+#!/bin/bash
set -e
PERCENT=$1
+USER=$2
FROM="{{postfix.postmaster}}"
msg="From: $FROM
Your mailbox is now $PERCENT% full. Please clean it up a bit!"
-echo -e "$msg" | /usr/sbin/sendmail -f "$FROM" "$USER" "$FROM"
+echo "$msg" | /usr/sbin/sendmail -f "$FROM" "$USER" "$FROM"
exit 0