Compare commits

..

No commits in common. "d65701051f9d4868564751f6353d45bc5bacd8d2" and "05b39369407c447c36f8929411aa4bd03c7f3854" have entirely different histories.

View file

@ -98,13 +98,13 @@ 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 "${temp_dir}/$(basename "${filename}")"; rm "${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
while read -r attachment; do while read -r attachment; do
log_msg "Extracted attachment ${attachment}"; log_msg "Extracted attachment ${attachment}";
chmod 0775 "${attachment}"; chmod 0775 "${temp_dir}/${attachment}";
move_attachment "${attachment}"; move_attachment "${attachment}";
done < <(find "${temp_dir}" -type f); done < <(find "${temp_dir}" -type f);
done < <(find "${dir_newmail}" -type f); done < <(find "${dir_newmail}" -type f);