adding msmtp-queue-handler depending on off/on status; make msmtp-queue paths configurable; reset counter when queue=0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user