Skip to content

Commit

Permalink
msmtpq: fix nuking files after message sent
Browse files Browse the repository at this point in the history
  • Loading branch information
thaumazein authored and marlam committed Apr 19, 2020
1 parent 63441f9 commit c78f243
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 @@ -290,7 +290,7 @@ send_queued_mail() { # <-- mail id

if "$MSMTP" $(< "${FQP}.msmtp") < "${FQP}.mail" ; then # this mail goes out the door
log "mail [ $2 ] [ $1 ] from queue ; send was successful ; purged from queue" # good news to user
'rm' -f "${FQP}.*" # nuke both queue mail files
'rm' -f "${FQP}".* # nuke both queue mail files
ALT='t' # set queue changed flag
else # send was unsuccessful
RC=$? # take msmtp exit code
Expand Down

0 comments on commit c78f243

Please sign in to comment.