I had the same problem when downloading emails with attachments from yahoo imap using thunderbird.For now I have found the workaround of disabling mail.server.default.fetch_by_chunks in Tools => Settings => (scroll to the end of the screen) => click ...