Fix #1077: improved performance and error handling in fetch_attachment
Closes #1077 (closed)
-
Write less often to disk (by default, chunk_size
is set to1
, meaning it was doing a lot of I/O) -
Catch exceptions to see if it improves the hanging situation