imap-download: chmod attachment before mv
This commit is contained in:
parent
98cc0b0d80
commit
2380e84985
1 changed files with 2 additions and 0 deletions
|
@ -38,7 +38,9 @@ do_attachments() {
|
||||||
# Move the attachment files to the output directory
|
# Move the attachment files to the output directory
|
||||||
while read -r attachment; do
|
while read -r attachment; do
|
||||||
log_msg "Extracted attachment ${attachment}";
|
log_msg "Extracted attachment ${attachment}";
|
||||||
|
chmod 0775 "${temp_dir}/${attachment}";
|
||||||
mv "${attachment}" "${target_dir}";
|
mv "${attachment}" "${target_dir}";
|
||||||
|
|
||||||
done < <(find "${temp_dir}" -type f);
|
done < <(find "${temp_dir}" -type f);
|
||||||
done < <(find "${dir_newmail}" -type f);
|
done < <(find "${dir_newmail}" -type f);
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue