diff --git a/images/imap-download/run.sh b/images/imap-download/run.sh index 673a722..49be98a 100755 --- a/images/imap-download/run.sh +++ b/images/imap-download/run.sh @@ -98,7 +98,7 @@ do_attachments() { # Unpack the attachments munpack -C "${temp_dir}" "${filename}"; # Delete the original email file and any description files - rm "${filename}"; + rm "${temp_dir}/${filename}"; find "${temp_dir}" -iname '*.desc' -delete; # Move the attachment files to the output directory