imap-download: chmod attachment before mv

This commit is contained in:
Starbeamrainbowlabs 2021-05-25 22:31:11 +01:00
parent 98cc0b0d80
commit 2380e84985
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -38,7 +38,9 @@ do_attachments() {
# Move the attachment files to the output directory
while read -r attachment; do
log_msg "Extracted attachment ${attachment}";
chmod 0775 "${temp_dir}/${attachment}";
mv "${attachment}" "${target_dir}";
done < <(find "${temp_dir}" -type f);
done < <(find "${dir_newmail}" -type f);
done