imap-download: fix delete original email

This commit is contained in:
Starbeamrainbowlabs 2021-05-26 22:40:40 +01:00
parent 05b3936940
commit 2235764ea6
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -98,7 +98,7 @@ do_attachments() {
# Unpack the attachments # Unpack the attachments
munpack -C "${temp_dir}" "${filename}"; munpack -C "${temp_dir}" "${filename}";
# Delete the original email file and any description files # Delete the original email file and any description files
rm "${filename}"; rm "${temp_dir}/${filename}";
find "${temp_dir}" -iname '*.desc' -delete; find "${temp_dir}" -iname '*.desc' -delete;
# Move the attachment files to the output directory # Move the attachment files to the output directory