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
1 changed files with 1 additions and 1 deletions

View File

@ -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