andrewferrier / email2pdf

Script to convert emails to PDF from the command-line, as well as detach recognized attachments. Helps to process incoming emails and assist automatically with a non-paper paperwork workflow. Designed to work in tandem with getmail to convert forwarded emails to PDF automatically.
MIT License
68 stars 35 forks source link

close file handle to prevent file being locked (win32) #108

Closed srirams closed 7 years ago

srirams commented 7 years ago

I was getting a PermissionError in windows because there was still a handle to the temp file left open, causing the subsequent move to fail.

andrewferrier commented 7 years ago

Thanks; I've merged this change! Looks very sensible for me, thanks for testing on Windows.