Mail.app doesn't always release file handles of files sent as attachments.

Originator:oliver
Number:rdar://22112410 Date Originated:2015-08-3
Status:Open Resolved:Duplicate of 21839871 (Closed)
Product:OS X Product Version:10.10.4 (14E46)
Classification:UI/Usability Reproducible:Always
 
Summary:
Compose an email with an image attachment.  "Edit" the image with the Markup feature.  Send email.  Wait a few minutes (the mail needs to send). Put attachment in trash.  Try and empty trash.  Just try.  I dare you.

Steps to Reproduce:
1. Open Mail.app
2. Compose new message.
3. Add image attachment.
4. Edit the attachment with "Markup".
5. Send message.
6. Trash image file.
7. Wait a few minutes.
8. Attempt to empty trash.

Expected Results:
That the trash is emptied.

Actual Results:
I can't empty Trash because the files I've attached to a mail message are still in use by Mail (open files).  See attached screenshots.



Version:
10.10.4 (14E46)

Notes:


Configuration:
If you don't edit the file before sending, the file handle is not leaked.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!