From 2235764ea6829ece58f22d604d8c586f67ae6773 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 26 May 2021 22:40:40 +0100 Subject: [PATCH] imap-download: fix delete original email --- images/imap-download/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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