adding msmtp-queue-handler depending on off/on status; make msmtp-queue paths configurable; reset counter when queue=0

This commit is contained in:
2016-11-23 12:44:29 +01:00
parent 42e41f3968
commit 3e0ec4d05a
4 changed files with 28 additions and 4 deletions

View File

@@ -5,16 +5,16 @@ source "$CURDIR"/shared-functions.so
# MAIL QUEUE ACTIONS
function send_mailqueue { # send queued mails
msmtp-listqueue.sh
$MSMTP_LIST
read -p "Send these queued mails? [Y/n]: " YN
if [[ $YN =~ ^(Y|y|)$ ]]; then
msmtp-runqueue.sh
$MSMTP_RUN
else
echo "Not sending emails"
fi
}
function list_mailqueue { # list emails in queue only
msmtp-listqueue.sh
$MSMTP_LIST
}
# CHANGE ONLINE STATUS