Skip to content

Commit

Permalink
Fix removing all queue mail files after sending.
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinggreenfrog authored and marlam committed Apr 23, 2020
1 parent b7ddb56 commit dfb3959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/msmtpq/msmtpq
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ send_mail() { # <-- all mail args ; mail text via TMP

if $MSMTP "$@" < "${FQP}.mail" > /dev/null ; then # send mail using queue .mail fil
log "mail for [ $* ] : send was successful" # log it
'rm' -f "${FQP}.*" # remove all queue mail files .mail & .msmtp file
'rm' -f "${FQP}".* # remove all queue mail files .mail & .msmtp file
run_queue 'sm' # run/flush any other mails in queue
else # send failed - the mail stays in the queue
log "mail for [ $* ] : send was unsuccessful ; msmtp exit code was $?"\
Expand Down

0 comments on commit dfb3959

Please sign in to comment.